Project

Profile

Help

Bug #5430 » sheet1.xsl

Martin Honnen, 2022-03-28 23:25

 
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="#all"
expand-text="yes">

<xsl:output method="xml" indent="yes"/>
<xsl:template match="item">
<xsl:next-match/>
<xsl:variable name="pos" as="xs:integer">
<xsl:number/>
</xsl:variable>
<xsl:result-document href="item-{$pos}.xml">
<xsl:next-match/>
</xsl:result-document>
</xsl:template>

<xsl:mode on-no-match="shallow-copy"/>

<xsl:template match="/" name="xsl:initial-template">
<xsl:next-match/>
<xsl:comment>Run with {system-property('xsl:product-name')} {system-property('xsl:product-version')} {system-property('Q{http://saxon.sf.net/}platform')}</xsl:comment>
</xsl:template>

</xsl:stylesheet>
(4-4/4)