id


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




XSLT 2.0 Programmer's Reference
NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)
ISBN: 764569090
EAN: 2147483647
Year: 2003
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net