[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: value-of formattting

Subject: RE: value-of formattting
From: "Lors, Ben" <Lors.Ben@xxxxxxxxxxxxx>
Date: Mon, 26 Mar 2001 14:38:01 -0600
kevin lors
Another update:

I should have done a little more research before I posted the original problem--my apologies.  The Xalan processor does NOT demonstrate this behavior.  I accidently had my code pointing to another processor (which does have the bug), but Xalan is not the culprit.  Thanks to all who took the time to respond...

Ben

-----Original Message-----
From: Lors, Ben [mailto:Lors.Ben@xxxxxxxxxxxxx]
Sent: Monday, March 26, 2001 12:48 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE:  value-of formattting


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@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.