[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Sibling axis and as="element()"

Subject: Re: Sibling axis and as="element()"
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 1 Aug 2006 11:53:49 +0100
Re:  Sibling axis and as="element()"
> Yes, thanks, it's becoming clearer although I'm still having issues
> with a "document" containing three root nodes that are all siblings.

that was allowed in xslt1 as well.
http://www.w3.org/TR/xslt#root-node-children
   ...In particular, it may have text node children, and any number of
     element node children. When written out using the XML output method (see
     [16 Output]), it is possible that a result tree will not be a
     well-formed XML document; however, it will always be a well-formed
     external general parsed entity. 


    When the source tree is created by parsing a well-formed XML
    document, the root node of the source tree will automatically
    satisfy the normal restrictions of having no text node children and
    exactly one element child. When the source tree is created in some
    other way, for example by using the DOM, the usual restrictions are
    relaxed for the source tree as for the result tree. 


another way that was possible in most xslt1 systems was to use 
<xsl:variable name="x">
 <foo/>
 <foo/>
 <foo/>
</xsl:variable>

select="xx:node-set($x)"

although of course the spec couldn't say that as it couldn't refer to
extensions.




David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.