Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
<ExampleDatabase>
<DatabaseEntry>
A lot of things.
</DatabaseEntry>
<DatabaseEntry>
Other things
</DatabaseEntry>
<DatabaseEntry>
Other things again
</DatabaseEntry>
</ExampleDatabase>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="startPosition"/>
<xsl:param name="endPosition"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="header">
<xsl:copy>
<xsl:apply-templates select="DatabaseEntry"/>
</xsl:copy>
</xsl:template>
<xsl:template match="DatabaseEntry">
<xsl:if test="position() >= $startPosition and position() <= $endPosition">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:if>
</xsl:template>
</xsl:stylesheet>