minor improvements to XSLT 3.0 spec, "section 18.1 The xsl:source-document Instruction"
| Newsgroups | gmane.text.xml.xsl.general.mulberrytech |
|---|---|
| Message-ID | <[email protected]> |
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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--