[Bug 1470] New: [FO] namespace-uri-for-prefix signature

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

           Summary: [FO] namespace-uri-for-prefix signature
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          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
 BugsThisDependsOn: 1467


This is a newer function that has not the right signature. Since the arguments 
are often calculated, we should allow empty:

11.2.5 fn:namespace-uri-for-prefix
fn:namespace-uri-for-prefix( $prefix  as xs:string?, 
$element  as element()?) as xs:anyURI? 

Summary: Returns the namespace URI of one of the in-scope namespaces for 
$element, identified by its namespace prefix.

If $element is the empty sequence, it returns the empty sequence. 

If $element has an in-scope namespace whose namespace prefix is equal to 
$prefix, it returns the namespace URI of that namespace. If $prefix is the 
zero-length string or the empty sequence, it returns the namespace URI of the 
default (unnamed) namespace. Otherwise, it returns the empty sequence.

Received on Thursday, 19 May 2005 20:06:56 UTC