New Node Types
There are several new node tests in addition to the familiar text(), comment(), etc.
-
item() matches any node or any atomic value.
-
document-node() matches a document node.
-
document-node(ElementTest) matches a document with a document element that matches ElementTest.