W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2012

[Bug 19480] New: [QT3TS] CastAsNamespaceSensitiveType-5

From: <bugzilla@jessica.w3.org>
Date: Thu, 11 Oct 2012 16:39:08 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-19480-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19480

          Priority: P2
            Bug ID: 19480
          Assignee: oneil@saxonica.com
           Summary: [QT3TS] CastAsNamespaceSensitiveType-5
        QA Contact: public-qt-comments@w3.org
          Severity: normal
    Classification: Unclassified
                OS: Windows NT
          Reporter: tim@cbcl.co.uk
          Hardware: PC
            Status: NEW
           Version: Working drafts
         Component: XQuery 3 & XPath 3 Test Suite
           Product: XPath / XQuery / XSLT

Since this function is declared as returning a string, function argument
conversion, static type analysis spots that  the declared return type (string)
of the function does not match the actual type returned (NOTATION).  It
therefore raises XPTY0004.

I think the intention of the test was to spot casting of the
<tag>xs:integer</tag> to xs:NOTATION, and thus suggest removing "as xs:string".


     declare function local:clarkname($q as xs:NOTATION) as xs:string {
       $q
     };

     local:clarkname(<tag>xs:integer</tag>)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 11 October 2012 16:39:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 October 2012 16:39:14 GMT