summaryrefslogtreecommitdiff
path: root/tests/general/bug-95.xsl
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-10-22 15:34:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-10-22 15:34:36 +0000
commit6b0ea0af935be3151f8068cfbfbe035e70342f0a (patch)
tree32a7b5d73cdd32c2f82f61f3fd57126adaa58f82 /tests/general/bug-95.xsl
parent3cc99fc381ece38a9b93dd8eeed7f31c399b55ac (diff)
downloadlibxslt-6b0ea0af935be3151f8068cfbfbe035e70342f0a.tar.gz
libxslt-6b0ea0af935be3151f8068cfbfbe035e70342f0a.tar.bz2
libxslt-6b0ea0af935be3151f8068cfbfbe035e70342f0a.zip
fixed bug #78501 when using a non ascii character for the number
* libxslt/numbers.c libxslt/numbersInternals.h libxslt/xsltutils.[ch]: fixed bug #78501 when using a non ascii character for the number formatting grouping separator. * tests/docs/Makefile.am tests/docs/bug-95.xml tests/general/Makefile.am tests/general/bug-95.*: added the example in the regression tests for this case * libxslt/attributes.c: cleaning up a problem introduced in last patch Daniel
Diffstat (limited to 'tests/general/bug-95.xsl')
-rw-r--r--tests/general/bug-95.xsl22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/general/bug-95.xsl b/tests/general/bug-95.xsl
new file mode 100644
index 00000000..a4c89e80
--- /dev/null
+++ b/tests/general/bug-95.xsl
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output method="html" encoding="ISO-8859-1"/>
+
+<xsl:decimal-format name="czf"
+ decimal-separator=","
+ grouping-separator="&#160;"/>
+
+<xsl:template match="Kapital">
+<html>
+<title>Example xsltproc</title>
+<body>
+ <xsl:apply-templates select="Vklad"/>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="Vklad" >
+<xsl:value-of select="format-number(Kc, '#&#160;###,00 Kč', 'czf')"/>
+</xsl:template>
+
+</xsl:stylesheet>