Subject: Re: [xsl] format-number() causing problems to non-java implementators From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx> Date: Thu, 18 Jan 2001 09:37:40 -0500 |
BTW: Are there more functions causing problems for non Java implementators?
The requirement that numbers are represented as per IEEE 754 is troublesome. There's no portable way to deal with NaNs and infinities in C, C++, or most other languages (C9X makes things a little easier, but implementations aren't widely available yet.)
The 'string()' function is astonishingly difficult to implement correctly without native language support, specifically clause 2, subclause 7, XPATH section 4.2: "there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values."
+-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@xxxxxxxxxxxxxxx | Writer/Programmer | +-----------------------+------------------------+-------------------+ | The XML Bible (IDG Books, 1999) | | http://metalab.unc.edu/xml/books/bible/ | | http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://metalab.unc.edu/javafaq/ | | Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/ | +----------------------------------+---------------------------------+
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] format-number() causing p, Michael Kay | Thread | Re: [xsl] format-number() causing p, Uche Ogbuji |
[xsl] BizTalk, Jo Kong HO | Date | Re: [xsl] xsl:script, Wendell Piez |
Month |