[Bug 3097] fn:Boolean should use error [err:XPTY0004].

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3097

           Summary: fn:Boolean should use error [err:XPTY0004].
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: mrys@microsoft.com
         QAContact: public-qt-comments@w3.org


Currently both FO and the language documents say:

In all other cases, fn:boolean raises a type error [err:FORG0006]. 

However, it would be more consistent with other type errors to make it
err:XPTY0004 which is defined as:

It is a type error if, during the static analysis phase, an expression is found
to have a static type that is not appropriate for the context in which the
expression occurs, or during the dynamic evaluation phase, the dynamic type of
a value does not match a required type as specified by the matching rules in
2.5.4 SequenceType Matching.

This bug has been prompted by
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2942 and is related to
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2559

Received on Friday, 7 April 2006 23:08:20 UTC