Project

Profile

Help

Bug #2323 » test.xsl

Radu Coravu, 2015-03-09 10:04

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

<xsl:template match="/">
<xsl:result-document>
<y>
<xsl:call-template name="test" />
</y>
</xsl:result-document>
</xsl:template>

<xsl:template name="test">
<z>
<xsl:variable as="xs:integer" name="num" select="." />
<xsl:value-of select="$num" />
</z>
</xsl:template>
</xsl:stylesheet>
(1-1/2)