[Bug 3310] "x" castable as xs:QName

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

           Summary: "x" castable as xs:QName
           Product: XPath / XQuery / XSLT
           Version: Candidate 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


For casting a string to a QName, we have a special rule that the string must be
written as a string literal. It's not clear how this rule affects the
"castable" expression. As written, V castable as xs:QName is true if the
*value* V can be cast to a QName; the spec says nothing about the result
depending on the way in which V is written.

The "least surprise" option is probably to say that V castable as xs:QName
(when V is a string) can succeed only if V is written as a string literal.

Michael Kay

Received on Monday, 5 June 2006 11:36:49 UTC