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

format-number underspecified (Was: XSLT 1.1 comments f

Subject: format-number underspecified (Was: XSLT 1.1 comments from Steve Muench)
From: David_Marston@xxxxxxxxx
Date: Wed, 14 Feb 2001 11:25:50 -0500
xsl format number decimalformat
| is probably Uche; > is Steve Muench:\

| format-number() is another case in point of this. It  causes *real* pain
| when an implementor has to find away to implement such an
| awkward mechanism when his language has perfectly useful, and far more
| mature, numerical formatting constructs. I bet you implemented
| format-number() in OracleXSL in ten minutes. It has taken the 4XSLT
| implementors a dreadful amount of work.

>Oracle has both Java and C implementations. I did not hear the developers
>of our C implementation complaining about format-number(). They just
>implemented the behavior as noted in the spec.

What spec is that, Steve? I have not seen a spec that is complete enough
to cover all the details. I consider it a big conformance issue. Here
are my prior comments within the Xalan community:
1. The XSLT spec doesn't say that format-number() MUST behave
   exactly like the Java DecimalFormat class for output.
2. Xalan-C++ ... doesn't have the luxury
   of handing the arguments to a JRE and hoping for the best.
3. Even the Java spec for DecimalFormat does not fully define the behavior
   at the necessary level of detail. Among the unaddressed issues:
   A. Whether setting the zero-digit is supposed to reset the whole 0-9
range.
[E.R. Harold later found a place where it does in the 1.3 spec, but XSLT
defines
 behavior per the JDK 1.1 spec.]
   B. Placement of % and ? at the right end.
   C. Effects of multiple % and/or ?.
   D. Whether the negative-number sub-pattern resets all characteristics.
   E. Effects of multiple pattern-separators.

In particular (3D) above has been noted as a problem by Ken Holman
that is affecting the content of his XSLT training material.
.................David Marston


 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.