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 1476 - [FO] fn:id: allow node to be empty in signature
Summary: [FO] fn:id: allow node to be empty in signature
Status: CLOSED WONTFIX
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
URL:
Whiteboard:
Keywords:
Depends on: 1467
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-19 20:13 UTC by Michael Rys
Modified: 2005-09-29 11:27 UTC (History)
0 users

See Also:


Attachments

Description Michael Rys 2005-05-19 20:13:57 UTC
The node is often calculated and the signature should allow it to avoid static 
typing issues. Proposed rewording:

fn:id($arg as xs:string*) as element()*
fn:id($arg as xs:string*, $node as node()?) as element()*
Summary: Returns the sequence of element nodes that have an ID value matching 
the value of one or more of the IDREF values supplied in $arg .

The function returns a sequence, in document order with duplicates eliminated, 
containing every element node E that satisfies all the following conditions:

1new. If $node is provided and the empty sequence, it returns the empty 
sequence.
...
Comment 1 Mary Holstege 2005-07-21 20:46:19 UTC
The working group considered this comment at its meeting today
and decided not to accept it. For rationale, please see bug 1467.