Hi all,
The XSLT 3.0 spec section mentioned in subject, has the following
example at the beginning,
<xsl:source-document streamable="yes" href="book.xml">
<xsl:for-each select="book">
<xsl:for-each select="chapter">
<xsl:result-document href="chapter{position()}.xml">
<xsl:copy-of select="."/>
</xsl:result-document>
</xsl:for-each>
</xsl:for-each>
</xsl:source-document>
I think that, it may be better to have above example as follows,
<xsl:source-document streamable="yes" href="book.xml">
<xsl:for-each select="/book">
<xsl:for-each select="chapter">
<xsl:result-document href="chapter{position()}.xml">
<xsl:copy-of select="."/>
</xsl:result-document>
</xsl:for-each>
</xsl:for-each>
</xsl:source-document>
(I guess, the XSLT 4.0 spec intends to say one book with above example)
Thanks for any comments.
--
Regards,
Mukul Gandhi
|