[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 21/01/2013 22:11, Michael Sokolov wrote:
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
Re: [xsl] node kind of result tree
Subject: Re: [xsl] node kind of result tree From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 21 Jan 2013 22:16:58 +0000 |
On 21/01/2013 22:11, Michael Sokolov wrote:
On 1/20/2013 6:36 PM, Max Toro wrote:Excluding the use of xsl:result-document, is the result of an XSLT transformation always a document-node() ?
The spec talks about result trees, but couldn't figure out if the tree is always rooted at a document-node() or if a tree rooted at an element() is allowed.
Hm - it is also possible to produce a sequence of "result-trees". I guess each one would be a document-node(), or be wrapped in one:
<xsl:template match="/"> <xsl:copy-of select="*" /> <xsl:copy-of select="*" /> </xsl:template>
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] node kind of result tree, Michael Sokolov | Thread | Re: [xsl] node kind of result tree, Michael Sokolov |
Re: [xsl] node kind of result tree, Michael Sokolov | Date | Re: [xsl] node kind of result tree, Michael Sokolov |
Month |
Keywords