[Bug 1476] New: [FO] fn:id: allow node to be empty in signature

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

           Summary: [FO] fn:id: allow node to be empty in 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


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.
...

Received on Thursday, 19 May 2005 20:14:00 UTC