This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1822 - [XSLT 2.0] +INF
Summary: [XSLT 2.0] +INF
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 08:18 UTC by Michael Kay
Modified: 2005-07-28 22:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-07-28 08:18:23 UTC
Copied from public-qt-comments:

I tried to use bugzilla to comment on the XSLT 2.0 WD, but not sure I
succeeded. Here it is again.
XSL Transformations (XSLT) Version 2.0
W3C Working Draft 4 April 2005
http://www.w3.org/TR/2005/WD-xslt20-20050404/ 

XML Schema Part 2 definitions for infinity value in a float data type (
http://www.w3.org/TR/xmlschema-2/ ) are as follows:
"The special values positive and negative infinity and not-a-number have
lexical representations INF, -INF and NaN ..."

The XSLT2 WD has an example that cites '+INF', but it looks like XML
Schema part 2 doesn't specifically provide for the plus sign on positive
infinity.
I am referring to the XSLT2 WD example in "Example: Errors in Constant
Subexpressions" that contains the following line:
<xsl:value-of select="xs:double('+INF')"/>

Based on XML Schema part 2, it looks like the XSLT2 example should
instead say:
<xsl:value-of select="xs:double('INF')"/>

It looks like -INF is defined in XML Schema data types but not +INF:
<xsl:value-of select="xs:double('-INF')"/> 
 
Thanks,
Kit Lueder

MITRE Dept. W215 -- Enterprise Services Systems Engineering

    _/    _/             Kit C. J. Lueder       
   _/   _/         _/   The MITRE Corp.         Tel:  703-983-5205
  _/_/_/    _/  _/_/_/ 7515 Colshire Dr        Cell: 703-577-2463
 _/   _/   _/    _/   Mailstop H405           FAX:  703-983-3383
_/    _/  _/    _/   McLean, VA 22102-7508   Mail: kit@mitre.org
Note: MITRE numbers have changed from 703-883-xxxx to 703-983-xxxx.
Divided we stand; United we fall.
Comment 1 Michael Kay 2005-07-28 22:42:39 UTC
I have changed "+INF" to "INF" in the example. I have also changed the
questionable use of "+Infinity" in clause 9 of appendix J.1.2 to say "positive
infinity" in normal font.

Thanks for pointing out this error, and I will assume your agreement by closing
the bug unless we hear otherwise. (I have also downgraded it to minor, to make
the change easier to add to the change log.)

Michael Kay
for the XSL WG