[Home] [By Thread] [By Date] [Recent Entries]
Am 15.03.2019 um 07:07 schrieb Mukul Gandhi gandhi.mukul@xxxxxxxxx:
Hi all, Well, whether you have streaming or not supported, snapshot makes splitting up files where you want to preserve the tree structure easy e.g. <xsl:for-each select="//foo!snapshot()"> B <xsl:result-document href="foo{position()}.xml"> B B B B <xsl:copy-of select="/"/> B </xsl:result-document> </xsl:for-each> Without snapshot in XSLT 2 you would need to write templates to reconstruct the ancestor tree of the foo elements. It is not that hard with the help of tunnel parameters but using snapshot for sure results in more compact code.
|

Cart



