[Bug 9808] New: [FO] fn:QName $paramUri need not be a valid xs:anyURI

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

           Summary: [FO] fn:QName $paramUri need not be a valid xs:anyURI
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
               URL: http://www.w3.org/TR/xquery-operators/#func-QName
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: mike@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


Given the declarations from F&O:

fn:QName($paramURI as xs:string?, $paramQName as xs:string) as xs:QName

fn:namespace-uri-from-QName($arg as xs:QName?) as xs:anyURI?

consider the query

let $uri := 'http://www.example.com/%gg/this-is-not-an-anyURI'
return 
  (fn:namespace-uri-from-QName(fn:QName($uri, 'my:name')), 
   $uri castable as xs:anyURI)

fn:QName appears to do no checking that its first argument ($paramURI) is
castable as xs:anyURI.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 26 May 2010 15:37:32 UTC