XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 XSLT 2 and Delimited Lists
Subject: Wondering whether brackets are needed to have a sequence
Date: 2003-05-21 02:44:46
From: Martin Honnen
Response to: Wondering whether brackets are needed to have a sequence

But the section you refer to is about constructing sequences from atomar values, there you need () to construct a sequence. Your example however uses an XPath expression with an element name as a node test and in XPath 1.0 that results in a node set why it is my understanding that in XPath 2.0 it results in a sequence of nodes.
Indeed if I try the example with Saxon 7.5 without the () around color then the result is the same as with (color).

No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938