XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (518 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
9.74Mb size Format: txt, pdf, ePub
ads

IdKeyPattern

This construct allows a pattern to be matched only if the node being tested (or one of its ancestors) has a specified ID attribute or key value.

This construct is a subset of the
FunctionCall
construct in an Expression, described in Chapter 7. The only function calls that can be used in a pattern (except within predicates) are the
id()
and
key()
functions, and these can be used only with arguments that are literals or variable references.

The
id()
function is an XPath function, while the
key()
function is exclusive to XSLT. Both are described in Chapter 13.

Syntax

Expression
Syntax
IdKeyPattern
id
(
Value
)
|
key
(
StringLiteral
,
Value
)
Value
Literal|VariableReference
BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
9.74Mb size Format: txt, pdf, ePub
ads

Other books

Beyond Betrayal by Christine Michels
Naked in Knightsbridge by Schmidt, Nicky
Los doze trabajos de Hércules by Enrique de Villena
The Remaining by Travis Thrasher
Haywire by Brooke Hayward
Embers & Ice (Rouge) by Isabella Modra
Intermission by Erika Almond