Subject: [xsl] The output of evaluating an XSLT transform is the same regardless of the order in which output elements are evaluated. Right? From: "Costello, Roger L." <costello@xxxxxxxxx> Date: Mon, 12 Apr 2010 13:37:16 -0400 |
Hi Folks, Is this statement true or false: XSLT elements that produce output can be evaluated in any order. Example: This XSLT produces two outputs: <xsl:text>Hello</xsl:text> <xsl:text>World</xsl:text> Is this statement true or false: The output will always be "HelloWorld" regardless of which <xsl:text> element is evaluated first. Is this explanation correct: Explanation: the outputs produced by each XSLT element is placed in an in-memory "result tree." Their position in the result tree depends on the sequential order of the outputs in the XSLT document. Thus, this XSLT element: <xsl:text>World</xsl:text> occurs later in the XSLT document and so therefore it is placed later in the result tree. After the XSLT transform completes executing then the result tree is serialized to an output file, in document order, which result in "Hello" first and "World" second. /Roger
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] reorder child nodes, Martin Honnen | Thread | Re: [xsl] The output of evaluating , David Carlisle |
Re: [xsl] reorder child nodes, Martin Honnen | Date | Re: [xsl] The output of evaluating , David Carlisle |
Month |