[xsl] is there any XSL Splitter to split XML in 200 chunk of record

Subject: [xsl] is there any XSL Splitter to split XML in 200 chunk of record
From: "Rahul Singh rahulsinghindia15@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jul 2017 09:11:03 -0000
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>*

Current Thread