Hi,
Is there any posiblites in XSL to split XML in 200 200 chunk of record in
same xml by xsl, *below is inputm expected putput, xsl:*
<?xml version="1.0" encoding="UTF-8"?>
<optical>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
</optical>
*Expected output:*
<?xml version="1.0" encoding="UTF-8"?>
<opticals>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
</optical>
<optical>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
<name>
<Doc>log00.txt</Doc>
</name>
</optical>
</opticals>
*XSL:*
*<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform>"> <xsl:output
omit-xml-declaration="yes" indent="yes"/> <xsl:template
match="optical"> <xsl:for-each select="name/Doc">
<xsl:copy-of select="."/> <xsl:if test="not(position() eq
last())"> </xsl:if> </xsl:for-each>
</xsl:template></xsl:stylesheet>*
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--