W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2010

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 26 May 2010 15:37:30 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-9808-523@http.www.w3.org/Bugs/Public/>

           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'
  (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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:42 UTC