XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Path expressions – examples / KindTests on element axes

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)

To select unnamed nodes on the chosen axis, use a KindTest that identifies the node kind. XPath 2.0 has a separate KindTest for each node kind:

There are also KindTests for element nodes and, to be used on the attribute axis, for attribute nodes. A separate KindTest for namespace nodes is unnecessary because they do not appear on element axes.

   

back to top