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

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

Subject: Re: Re: [XSL] Two "Philisophical" questions about the language
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 18 Jan 2009 10:40:58 GMT
Re:  Re: [XSL] Two "Philisophical" questions about the
> 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"/>
<a/>
<b/>
</xsl:variable>

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.

David


________________________________________________________________________
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

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-2011 All Rights Reserved.