tests/expr/math/math-3307a.xsl
author Michael Kay <mike@saxonica.com>
Mon, 11 Jan 2016 11:27:29 +0000
changeset 1198 aacf3d6d8681
child 1211 226a4c4600fb
permissions -rw-r--r--
Variants of some math tests to force runtime evaluation
1198
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="ISO-8859-1"?>
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
  xmlns:xs="http://www.w3.org/2001/XMLSchema">
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
<?spec fo#func-numeric-divide?>
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
<!-- PURPOSE:  Test that the result of dividing two integers is a decimal. -->
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
  <!-- Variant forcing run-time evaluation -->
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
  
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
  <xsl:param name="p" select="3"/>
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
<xsl:template match="/">
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    11
<out result="{($p div 4) instance of xs:decimal}"/>
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
</xsl:template>
aacf3d6d8681 Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
</xsl:stylesheet>