summaryrefslogtreecommitdiff
path: root/tests/general/bug-61.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-09-14 13:23:51 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-09-14 13:23:51 +0000
commitcc975baab0ba187951fe4101f6b4f742b6554392 (patch)
tree3bb594b015adad901abd23cd1cb28bca6aeabba3 /tests/general/bug-61.xsl
parent91d231d6d9ec659bdb25f795b116df089f8dabdd (diff)
downloadlibxslt-cc975baab0ba187951fe4101f6b4f742b6554392.tar.gz
libxslt-cc975baab0ba187951fe4101f6b4f742b6554392.tar.bz2
libxslt-cc975baab0ba187951fe4101f6b4f742b6554392.zip
Fixing bug #60415 added a specific example in the regression tests Daniel
* libxslt/numbers.c: Fixing bug #60415 * tests/docs/Makefile.am tests/docs/bug-61.xml tests/general/Makefile.am tests/general/bug-61.*: added a specific example in the regression tests Daniel
Diffstat (limited to 'tests/general/bug-61.xsl')
-rw-r--r--tests/general/bug-61.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/general/bug-61.xsl b/tests/general/bug-61.xsl
new file mode 100644
index 00000000..2070df49
--- /dev/null
+++ b/tests/general/bug-61.xsl
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+version="1.0">
+<xsl:template match="/">
+case 1:
+<xsl:value-of select="format-number('', '#.#')"/>
+case 2:
+<xsl:value-of select="number('')"/>
+case 3:
+<xsl:value-of select="format-number(non/existing/path, '#.#')"/>
+case 4:
+<xsl:value-of select="number(non/existing/path)"/>
+</xsl:template>
+</xsl:stylesheet>