This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1470 - [FO] namespace-uri-for-prefix signature
Summary: [FO] namespace-uri-for-prefix signature
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
: 1426 (view as bug list)
Depends on: 1467
  Show dependency treegraph
Reported: 2005-05-19 20:06 UTC by Michael Rys
Modified: 2005-09-29 11:25 UTC (History)
0 users

See Also:


Description Michael Rys 2005-05-19 20:06:54 UTC
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.
Comment 1 Michael Rys 2005-05-19 20:19:20 UTC
*** Bug 1426 has been marked as a duplicate of this bug. ***
Comment 2 Mary Holstege 2005-07-21 20:40:21 UTC
The working group discussed this at the meeting today and decided to accept this 
comment, in part, by making the prefix argument accept an empty sequence with 
the semantics as you describe.