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

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

The KindTest

Whereas a
NameTest
is designed to match nodes primarily by their name, a
KindTest
matches specific kinds of nodes. In the case of element and attribute nodes, it also allows matching against the type annotation attached to the node as a consequence of schema validation.

The syntax of a
KindTest
, copied from the XPath specification, is as follows:

Expression
Syntax
KindTest
DocumentTest| ElementTest| AttributeTest| TextTest| PITest| CommentTest| AnyKindTest
DocumentTest
document-node
(
ElementTest?
)
ElementTest
BasicElementTest | SchemaElementTest
BasicElementTest
element
(
( ElementNameOrWildCard (
,
TypeName
?
?)? )?
)
BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
9.48Mb size Format: txt, pdf, ePub
ads

Other books

Covenant by Maria Rachel Hooley
Starclimber by Kenneth Oppel
The Goblin King by Heather Killough-Walden
Birthing Ella Bandita by Montgomery Mahaffey
El mundo by Juan José Millás
Time Goes By by Margaret Thornton
The Missing Person by Alix Ohlin
Dark New World (Book 2): EMP Exodus by Holden, J.J., Foster, Henry Gene