diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-10-22 15:34:36 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-10-22 15:34:36 +0000 |
commit | 6b0ea0af935be3151f8068cfbfbe035e70342f0a (patch) | |
tree | 32a7b5d73cdd32c2f82f61f3fd57126adaa58f82 /tests/general/bug-95.xsl | |
parent | 3cc99fc381ece38a9b93dd8eeed7f31c399b55ac (diff) | |
download | libxslt-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.xsl | 22 |
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=" "/> + +<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, '# ###,00 Kč', 'czf')"/> +</xsl:template> + +</xsl:stylesheet> |