tests/expr/math/math-3309a.xsl
author Michael Kay <mike@saxonica.com>
Mon, 11 Jan 2016 11:27:29 +0000
changeset 1198 aacf3d6d8681
permissions -rw-r--r--
Variants of some math tests to force runtime evaluation
<xsl:stylesheet version="2.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<?spec fo#func-number?>
<!-- Test whitespace trimming in string-to-number conversion -->
  <!-- Variant forcing runtime evaluation -->
  
  <xsl:param name="p" select="'  -2  '"/>
  

<xsl:template match="/">
  <out>
    <xsl:value-of select="number($p)"/>
  </out>
</xsl:template>
</xsl:stylesheet>