[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT 2.0 format-number() question
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
|
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
|