to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

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

Warning: There is a bug in the XPath 1.0 spec! Default namespaces are required to be handled incorrectly, so, if using Namespaces together with XPath (or XSLT), all elements must have an explicit prefix.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next