tests/expr/math/math-3307a.xsl
changeset 1198 aacf3d6d8681
child 1211 226a4c4600fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/expr/math/math-3307a.xsl	Mon Jan 11 11:27:29 2016 +0000
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
+  xmlns:xs="http://www.w3.org/2001/XMLSchema">
+<?spec fo#func-numeric-divide?>
+<!-- PURPOSE:  Test that the result of dividing two integers is a decimal. -->
+  <!-- Variant forcing run-time evaluation -->
+  
+  <xsl:param name="p" select="3"/>
+
+<xsl:template match="/">
+<out result="{($p div 4) instance of xs:decimal}"/>
+</xsl:template>
+</xsl:stylesheet>
\ No newline at end of file