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

Multiple root nodes in a node-set

Subject: Multiple root nodes in a node-set
From: Elliotte Harold <elharo@xxxxxxxxxxxxxxx>
Date: Fri, 29 Aug 2003 22:43:24 -0400
xml multiple root nodes
Is there anything in the XPath 1.0 data model which prohibits a node-set from containing more than a single root node? For instance, could a node-set be imagined which contains document nodes for two or three documents?

I don't think you can construct such a thing using either XPath or XSLT 1.0. However, in other environments, it might be feasible.

In particular, this is relevant to XML canonicalization which can operate on node-sets as well as complete documents. If it's legal for a node-set to contain multiple roots, then I need to make sure my canonicalizer handles the case of multiple roots. If it's not, then I need to make it throw an exception.

Right now my suspicion is that this is legal, but I'd love it if someone could point me to the section of the XPath spec that proves me wrong.

--
Elliotte Rusty Harold


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.