|
Subject: [xsl] format-number in Saxon 8.5 From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx> Date: Mon, 15 Aug 2005 00:32:12 +0200 |
Hi list,
the stylesheet below works fine with Saxon6,
00001
00022
00333
04444
55555
but not with Saxon8
001
0022
0333
04444
55555
Any idea what's wrong with it?
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="LF" select="'
'" />
<xsl:template match="/">
<xsl:value-of select="$LF" />
<xsl:value-of select="format-number(1,'00000')" />
<xsl:value-of select="$LF" />
<xsl:value-of select="format-number(22,'00000')" />
<xsl:value-of select="$LF" />
<xsl:value-of select="format-number(333,'00000')" />
<xsl:value-of select="$LF" />
<xsl:value-of select="format-number(4444,'00000')" />
<xsl:value-of select="$LF" />
<xsl:value-of select="format-number(55555,'00000')" />
</xsl:template>
</xsl:stylesheet>
Manfred
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] format-number in Saxon 8., Michael Kay | Thread | [xsl] How can I placed end tags?, aaron apigo |
| RE: [xsl] How to sort attribute?, Michael Kay | Date | RE: [xsl] format-number in Saxon 8., Michael Kay |
| Month |