Returns the sequence of element nodes that have an ID value matching the value of one or more of the IDREF values supplied in $idrefs. If none is matching or $idrefs is the empty sequence, returns the empty sequence.
$idrefs
The IDREF sequence
Returns the elements with IDs matching IDREFs from $idref-sequence
id($idrefs as xs:string*, $node-in-document as node()) element()*
Returns the sequence of element nodes that have an ID value matching the value of one or more of the IDREF values supplied in $idrefs and is in the same document as $node-in-document. If none is matching or $idrefs is the empty sequence, returns the empty sequence.
$idrefs
The IDREF sequence
$node-in-document
The node in document
Returns the elements with IDs matching IDREFs from $idrefs in the same document as $node-in-document