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

RE: XSLT 2.0 format-number() question

Subject: RE: XSLT 2.0 format-number() question
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 20 Jun 2002 23:58:23 +0100
xslt number conversions
The standard conversion rules for passing arguments to functions in
XPath 2.0 are documented in the XPath 2.0 specification
(http://www.w3.org/TR/xpath20/) section 2.2.4. I suspect there are bugs
in the current description of these rules, but the general principles
are sound. I think the XSLT spec probably shouldn't say anything about
the conversions that are applied, this is entirely an XPath matter.

The conversion rules for XPath 1.0 are in the XPath specification,
section 3.2.

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 Mike Brown
> Sent: 20 June 2002 09:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XSLT 2.0 format-number() question
> 
> 
> XSLT 2.0 says, regarding format-number():
> 
> "The number is supplied as the value of the first argument. 
> The required type 
> of this argument is xsd:double; if the value is not of the 
> right type, it is 
> converted using the standard conversion rules"
> 
> I'd like this to be more clear. What are "the standard 
> conversion rules"?
> 
> I have an idea what they are, but I'd like to not have to 
> guess. Can we get an 
> actual reference in there?
> 
> 
> I also noticed XSLT 1.0's format-number() doesn't say that 
> the conversion 
> of the first argument to a number occurs at all; should I 
> assume that it does?
> 
>    - Mike 
> ______________________________________________________________
> ______________
>   mike j. brown                   |  xml/xslt: http://skew.org/xml/
>   denver/boulder, colorado, usa   |  resume: 
> http://skew.org/~mike/resume/
> 
>  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.