The output of evaluating an XSLT transform is the same
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format