xsl-list
[Top] [All Lists]

xsl:number format tokens in XSLT 1.0

2005-02-16 15:22:38
From what I can tell, the only format token which enforces a minimal output string length is a numeric token ending in Unicode '1', preceded by some number of Unicode '0' characters. Is this correct?

It seems like the minimal output string length, in practice, is determined simply by the length of a numeric format token.

For example, (results taken from Xalan and Saxon both)

<xsl:number value="8" format="001"> will produce "008"

similarly...

<xsl:number value="8" format="999"> will also produce "008"

The TR specifies that any token outside of the 5 predefined types should cause a numbering sequence beginning with that token. Can anyone explain more clearly why '999' doesn't fall into this category?

Thanks!



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>