Project

Profile

Help

Bug #2190 » using-package.xsl

John Lumley, 2014-10-20 11:40

 
<xsl:package name="using-package.xsl"
package-version="1.0" version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:f="http://example.org/complex-arithmetic.xsl">
<xsl:use-package name="http://example.org/complex-arithmetic.xsl" package-version="1\.0"/>
<xsl:template match="/">
<xsl:variable name="vComplex1" select="f:complex-number(1, 0)" as="map(xs:integer, xs:double)"/>
Real: <xsl:sequence select="$vComplex1(0)"/>
Imaginary: <xsl:sequence select="$vComplex1(1)"/>
</xsl:template>
</xsl:package>
(1-1/2)