1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-08 11:02:18 +03:00
Files
libxslt/tests/numbers/format-number.xsl
Daniel Veillard dfcbad530f One more day of hacking:
- FEATURES: updated
- tests/numbers/Makefile.am tests/numbers/format-number.*
  tests/Makefile.am configure.in: added number formattting
  test from Bjorn
- libxslt/attributes.[ch]: separated attribute support, started
  add support for attribute-sets
- libxslt/functions.[ch]: update for number and formatting
  from Bjorn
- libxslt/transform.c libxslt/xslt.c libxslt/xsltInternals.h:
  cleanups updates, etc ...
Daniel
2001-01-29 17:44:52 +00:00

26 lines
675 B
XML

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="xml"
indent="yes"
encoding="iso-8859-1"
/>
<xsl:decimal-format
name = "special"
decimal-separator = "*"
/>
<xsl:template match="functions">
<pi>
one <xsl:value-of select="format-number(pi, 'prefix#,#,###.##suffix')"/>
two <xsl:value-of select="format-number(negpi, '_#,#,###.##_')"/>
three <xsl:value-of select="format-number(negpi, '_#,#,000.000##_')"/>
four <xsl:value-of select="format-number(negpi, '_#.#_;_(#.#)_')"/>
five <xsl:value-of select="format-number(pi, 'prefix#,#,###*##suffix','special')"/>
</pi>
</xsl:template>
</xsl:stylesheet>