Subject: Re: [xsl] node kind of result tree|
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Jan 2013 23:17:45 +0000
es, 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".
Well that's JDom (which I haven't used) rather than XSLT but reading that it appears that it is using JDOMResult directly to hold the implicit document node generated by XSLT, which is fine as XSLT doesn't mandate any particular mapping between the abstract XPath (XDM) model and the outside world. then what it is telling you is that a transformation such as the one you posted may generate <a></a> <b></b> with more than one element child of the root node. Such a result is not a well formed _document_ but it is a well formed external parsed entity (or would be had the XML spec applied the term well formed to external parsed entities.