tests/expr/math/math-3308a.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?>
<!-- Bug in 7.8: converting a string of spaces to a number crashes -->
  <!-- Variant forcing runtime evaluation -->
  
  <xsl:param name="p" select="'   '"/>

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