to the main page... about these slides...

Node tests

Testing by node type:

text()   chardata nodes
comment()   comment nodes
processing-instruction()   processing instruction nodes
node()   all nodes (not including attributes and namespace declarations)

Testing by node name:
name   nodes with that name
*   any node

When testing by name, only nodes of the "axis principal node type" are considered (attributes for attribute axis, namespace nodes for namespace axis, element nodes for all other axes).