This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: value-of formattting
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] value-of formattting
- From: "Lors, Ben" <Lors dot Ben at principal dot com>
- Date: Mon, 26 Mar 2001 12:48:17 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
Interesting behavior. When I use Mike's suggestion, I get the same results (40,000). When I use Jason's suggestion, it doesn't mess with it. Thought I'd share just in case anyone runs across the same issue...
Ben
-----Original Message-----
Sent: Monday, March 26, 2001 11:36 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] value-of formattting
> I'm using a Xalan processor and am slightly annoyed at one
> specific behavior. When I use, for example, <xsl:value-of
> select="40000"/>, the result I see is "40,000" (with the
> comma). Is there a way to get it to output without the
> comma?
----
Did you try enclosing it in quotes so that Xalan thinks it's a string?
<xsl:value-of select="'40000'"/>
I would hope that it doesn't try to format that for you.
Jason.
----
This behavior is incorrect, I would submit a bug report.
You could try converting to a string first, select="string(40000)"
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list