posted 21 years ago
Amy,
'XML in a nutshell' page 157 says - "Predicates that indicate node sets are true if the node set is nonempty and false if it's empty".
The Xpath expression *[*] selects elements that match the predicate [*]. On leaf elements [*] returns false and therefore *[*] won't match any node when the context node is a leaf element.
*[not(*)] is obviously the opposite.
Cheers,
Dan
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.