NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)

The id() function returns a sequence containing all the elements in the same document as the context node (or as some other specified node), with given ID attribute values.

For example, if the code attribute is defined as an ID attribute, then the expression «id('A321-780') » might return the single element <product code="A321-780"> .

Argument

Data Type

Meaning

Values

xs:string*

Specifies the required ID values

document (optional)

node()

A node identifying the document in which the ID values are to be located. If omitted, the document containing the context node is used

Result

element()*

A sequence of nodes, in document order, containing the nodes with the required ID values

Категории