Hi, I'm familiar with the notion of xpath expressions being evaluated relative to a context node within a current node list.
The javadoc for the XPath.evaluate(String, Object, QName) method says that the second parameter is the context, "a node or node list, for example". Using Xalan 2.7, If I pass a NodeList as the second parameter "count(self::node())" returns 0, and "self:node()" returns an empty node list. "*/node()" results in an "Unknown error in XPath". In Sun's SE 6 the javadoc now leaves out the words "or node list". So, if a node list can be passed as the second parameter, how should the XPath expression refer to it? Or, if a node list should not be passed as the second paraemter, is there a reason why the parameter is not of type Node? Is there another type of object other than a sub-class of Node that can be passed as the second parameter? Kendall