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

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

Usage

A
KindTest
can be used within an
AxisStep
to restrict the
Step
to return nodes of a particular kind. The keywords
comment
,
text
, and
processing-instruction
are self-explanatory: they restrict the selection to nodes of that particular kind. The keyword
node
selects nodes of any kind and is useful because an
AxisStep
has to include some kind of
NodeTest
, so if you want all the nodes on the axis, you can specify
node()
. For example, if you want all child nodes, specify
child::node()
. Remember that although
node()
as a
NodeTest
selects any kind of node,
node()

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

Other books

A Lizard In My Luggage by Anna Nicholas
A Brilliant Ride by Mitchell, Lisa J.
TOML SW 2015-04-09 by Amy Gamet
The Heiress Effect by Milan, Courtney
Finches of Mars by Brian W. Aldiss
Libros de Sangre Vol. 2 by Clive Barker
Best Friends Forever by L.A. Thompson
Puss 'N Cahoots by Rita Mae Brown