[Bug 5617] [F&O] Summary of numeric-unary-plus

           Summary: [F&O] Summary of numeric-unary-plus
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: mike@saxonica.com
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


Section 6.2.7 of F&O says (about numeric-unary-plus):
Semantically, this operation performs no operation.

However this behavior is inconsistent with numeric-unary-minus (and all other
numeric operators).

Specifically, consider the following query:
(+xs:int) instance of xs:int

According to the specification, this evaluates to true, however would this be
better casting the xs:int to an xs:integer? (i.e. should + behave the same as
--?)

Received on Friday, 4 April 2008 10:00:19 UTC