[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: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Mon, 31 Jul 2006 17:36:56 +0100
Re:  Sibling axis and as="element()"
There does have to be a single root node, and there is.

What there isn't is a single document element.
So that makes it a general parsed entity, rather than a well-formed document.


As long as you don't particularly need the latter (you would if you intended to serialize it, and then expect an XML parser not to choke on it), then there is no problem.

From: "andrew welch" <andrew.j.welch@xxxxxxxxx>

In this case:

<xsl:variable name="foo" as="document-node()">
	<xsl:document>
		<foo/>
		<foo/>
		<foo/>
	</xsl:document>
</xsl:variable>

There is a document node and three child elements, that are siblings
of one another but that do not have a common parent?  How come in this
case there doesn't have to be a single root node?


_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview


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.