W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2007

[Bug 4855] [XPath] Undocumented incompatibility

From: <bugzilla@wiggum.w3.org>
Date: Fri, 13 Jul 2007 13:17:53 +0000
To: public-qt-comments@w3.org
Message-Id: <E1I9L1t-00038D-FO@wiggum.w3.org>


           Summary: [XPath] Undocumented incompatibility
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org

The following incompatibility should be documented in Appendix I.1

In XPath 1.0, the expression -x|y parsed as -(x|y), and returned the negation
of the numeric value of the first node in the union of x and y. In XPath 2.0,
this expression parses as (-x)|y. For example, given the untyped input element
<foo y="3"/> as the context node, the expression -@x|@y in XPath 1.0 returns
-3, but in XPath 2.0 (without static type checking) returns 3.
Received on Friday, 13 July 2007 13:17:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:19 UTC