Subject: [xsl] minor improvements to XSLT 3.0 spec, "section 18.1 The xsl:source-document Instruction" From: "Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 Jan 2021 07:38:27 -0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to Parse String with , Liam R. E. Quin liam | Thread | Re: [xsl] minor improvements to XSL, Michael Kay mike@xxx |
Re: [xsl] How to Parse String with , Liam R. E. Quin liam | Date | Re: [xsl] minor improvements to XSL, Michael Kay mike@xxx |
Month |