xsl-list
[Top] [All Lists]

Re: [xsl] node kind of result tree

2013-01-21 17:18:07
On 21/01/2013 22:33, Michael Sokolov wrote:
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.

David



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>