Project

Profile

Help

Bug #5823 ยป test.xsl

simple repro - Philip Fearon, 2023-01-16 16:33

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

<xsl:template match="/*" mode="#all">
<xsl:variable name="run" as="xs:integer" select="slice((1,2,3,4), 1)"/>

<xsl:copy>
<slice>{$run}</slice>
</xsl:copy>
</xsl:template>

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