[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: why isn't there data-type for variable like sort?
There is no facility within XSLT 1.0 to read numbers in scientific (exponential) notation: you will have to use an extension function (e.g. Java or JavaScript). Or you could use Saxon 7.0, which implements some of the XSLT 2.0/XPath 2.0 facilities in this area. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of > Kang Jeong-Hee > Sent: 19 February 2002 23:36 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: why isn't there data-type for variable like sort? > > > I have asked translations exponent number value like > "4.8803077704e+06" into decimal one within XSLT. > At first, I tried number format="something" but failed. I > think number element is not the way for this task. > > I struggle to remember how I did handle the numbers on other > languages. and found that I need a type cast. > that's because XML handle all data only as string, not other one. > > Is this right? IMHO variable have to support data-type > attribute. but I can't feel sure for my say. I'm newbie to XSL world. > > well, Is there any way to translate 4.8803077704e+06 into decimal one? > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|