Return sequence of element nodes referenced by IDREF
values.
The following construct(s) refer to this construct:
fn:id(xs:string* $arg, node() $node) => element()*
This function returns a sequence, in document order with duplicates
eliminated, of those elements that are in the same document as
$node
that have an ID
value matching
one or more of the xs:IDREF
s in the list of candidate
xs:IDREF
s. The list of xs:IDREFs results from parsing the string
argument: the string is treated as a sequence of tokens separated by space, and
each of the tokens is considered a value of type xs:IDREF
. If the
token is not a lexically valid xs:IDREF
value, it is ignored. If
no xs:IDREF
value matches the ID value of any element, the
function returns the empty sequence. The match is performed strictly using
Unicode codepoints, that is, without a collation.
$arg |
string that can be tokenized into valid values of type
|
---|---|
$node |
a node |