author | Michael Kay <mike@saxonica.com> |
Mon, 11 Jan 2016 11:27:29 +0000 | |
changeset 1198 | aacf3d6d8681 |
permissions | -rw-r--r-- |
1198
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
1 |
<xsl:stylesheet version="2.0" |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
2 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
3 |
> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
4 |
<?spec fo#func-number?> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
5 |
<!-- Test whitespace trimming in string-to-number conversion --> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
6 |
<!-- Variant forcing runtime 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="' -2 '"/> |
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 |
|
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
11 |
<xsl:template match="/"> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
12 |
<out> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
13 |
<xsl:value-of select="number($p)"/> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
14 |
</out> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
15 |
</xsl:template> |
aacf3d6d8681
Variants of some math tests to force runtime evaluation
Michael Kay <mike@saxonica.com>
parents:
diff
changeset
|
16 |
</xsl:stylesheet> |