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

RE: MSXML Sept. release format-number bug!

Subject: RE: MSXML Sept. release format-number bug!
From: Eckenberger Axel <Extern.Eckenberger@xxxxxxxx>
Date: Thu, 19 Oct 2000 10:25:23 +0200
decimalformat quote
This is not a bug but increased conformance !!!

The XSL Spec sais about the number format, amongst other things:

<Quote name="format-number"
href="http://www.w3.org/TR/xslt#function-format-number" note="added
comment">
The format pattern string is in the syntax specified by the JDK 1.1
DecimalFormat <!-- see quote 'Number.BNF' below --> class.
</Quote>

This quote references

<Quote name = "Number.BNF"
href="http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.
html">
The following shows the structure of the pattern. 
 pattern    := subpattern{;subpattern}
 subpattern := {prefix}integer{.fraction}{suffix}
 prefix     := '\\u0000'..'\\uFFFD' - specialCharacters
 suffix     := '\\u0000'..'\\uFFFD' - specialCharacters
 integer    := '#'* '0'* '0'
 fraction   := '0'* '#'*
 Notation:
  X*       0 or more instances of X
  (X | Y)  either X or Y.
  X..Y     any character from X up to Y, inclusive.
  S - T    characters in S, except those in T
</Quote>

As you can see from the BNF there is no scientific representation, so the
result you got using the earlier release was wrong and now the parser
conforms with the spec.

Axel
 

> -----Original Message-----
> From: charbel.keyrouz@xxxxxxxxxxxxxxxx
> [mailto:charbel.keyrouz@xxxxxxxxxxxxxxxx]
> Sent: Thursday, October 19, 2000 8:57 AM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: MSXML Sept. release format-number bug!
> 
> 
> With MSXML July release using format-number XSL function used 
> to return the
> correct fomratted value for scientific number (1.2333E4), but 
> when I upgraded to
> the September release it started to return NaN when formating 
> scientific
> numbers. Any ideas!
> I think it 's a bug, what' s weird is that it used to work, anyway the
> performance improvement are very noticeable and that's a very 
> important fact for
> client-side processing.  Does anybody know where I can report 
> such a bug.
> 
> 
>  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.