|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [XSLT Streaming] My code visits descendant nodes twice
Hi Folks,
According to the XSLT specification, when using streaming the XSLT code can
only visit descendant nodes once. In the below code I copy all the child Book
elements (visit #1) and then I count the number of child Book elements (visit
#2). The code works without any errors. Why? It seems like I should have
gotten an error since I visited the child Book elements more than once.
<xsl:template match="BookCatalogue" mode="streaming">
<BookStore>
<xsl:copy-of select="Book"/>
<NumberOfBooks><xsl:value-of
select="count(Book)"/></NumberOfBooks>
</BookStore>
</xsl:template>
/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
|

Cart


![[XSLT Streaming] My code visits descendant nodes twice](/images/get_stylus.gif)





