[Bug 1477] New: [FO] fn:idref: allow node to be empty in signature

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

           Summary: [FO] fn:idref: 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:idref($arg as xs:string*) as node()*
fn:idref($arg as xs:string*, $node as node()?) as node()*
Summary: Returns the sequence of element or attribute nodes with an IDREF 
value matching the value of one or more of the ID values supplied in $arg.

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

1new. If $node is the empty sequence, it returns the empty sequence.
...

Received on Thursday, 19 May 2005 20:16:49 UTC