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-20 18:06:17
From: Bob DuCharme
Response to: Wondering whether brackets are needed to have a sequence

To identify a sequence, I was following the model at http://www.w3.org/TR/xpath20/#id-sequence-expressions, which shows that parentheses are required. I never tried it without them.


Bob


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


Titles Only Titles Only Newest First
  • Wondering whether brackets are needed to have a sequence
    2003-05-21 02:44:46 Martin Honnen [Reply]

    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).

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