tests/expr/math/math-3308a.xsl
changeset 1198 aacf3d6d8681
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/expr/math/math-3308a.xsl	Mon Jan 11 11:27:29 2016 +0000
@@ -0,0 +1,15 @@
+<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>