Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Sibling axis and as="element()"

From: David Carlisle <davidc@--------->
To:
Date: 8/1/2006 11:25:00 AM
> 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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent