This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: format-number in XT
- To: "'Larry_Mason at i2 dot com'" <Larry_Mason at i2 dot com>
- Subject: RE: format-number in XT
- From: Heather Lindsay <heather dot lindsay at Trifolium dot com>
- Date: Fri, 15 Sep 2000 15:18:20 -0400
- Cc: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Reply-To: xsl-list at mulberrytech dot com
In order to use format-number(), an <xsl:decimal-format> element must be
present in the stylesheet. If none is present, then a default decimal
format is used (this may be defined in the implementation - XT in your
case). Your first example works because it is a valid format for the
default decimal format. For your second example to work the way you want it
to, you need to define an <xsl:decimal-format> element. If you have Mike
Kay's book, this is a great place to find what you need (p455 and p187). If
not, see XSLT section 12.3. This is about the extent of my knowledge as I
have not actually used format-number(). Hope this helps some. Good luck!
- Heather
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list