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

Re: node kind of result tree

Subject: Re: node kind of result tree
From: Michael Sokolov <sokolov@xxxxxxxxxxxx>
Date: Mon, 21 Jan 2013 17:33:18 -0500
Re:  node kind of result tree
On 1/21/2013 5:16 PM, David Carlisle wrote:

would produce a sequence of two documents, as I understand it

-Mike


No. Each of the copy-of would copy a sequence of element nodes, the template will make an implicit (single) document node to hold the combined sequence of element nodes.


David

Ah, thanks David - I must have been confused. Somewhere I seemed to remember having to deal with the possibility that an XSL transformation could produce a sequence. Yes, here it is in the javadoc of JDOMResult:

 * A holder for an XSL Transformation result, generally a list of nodes
 * although it can be a JDOM Document also. As stated by the XSLT 1.0
 * specification, the result tree generated by an XSL transformation is not
 * required to be a well-formed XML document. The result tree may have "any
 * sequence of nodes as children that would be possible for an
 * element node".

Can you place that in proper perspective for us? Under what circumstances would we expect to get a sequence of nodes (not a document) from XSLT?

-Mike

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.