Re: [xsl] Re: [XSL] Two "Philisophical" questions about the language

Subject: Re: [xsl] Re: [XSL] Two "Philisophical" questions about the language
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 18 Jan 2009 10:40:58 GMT
> But I do also share Michael's point of view, and see 
> as a limitation the fact that we can have only one document element.

Note though that is a limitation of the textual XML document syntax, not
of the XPath (XDM) document model. In Xpath you can have any number of
element children under the root and a match pattern of /*[2] is
perfectly legal and matches the second of them.

<xsl:variable name="x"/>

constructs (directly in xst2 or via x:node-set() in xslt 1) a document
with three nodes a document node / which has two child element nodes a
and b. 
The result of an XSLT transform can be such a document node, which can
not be serialised as an XML document but can be (and is) serialised as
an external parsed entity.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

Current Thread