Affects Version/s: 1.6
Fix Version/s: None
Environment:Operating System: All
The following XPath
When run over the following xml file
returns all three Assertion nodes. When the predicate  is changed to 
only the node with id="Second" is selected, ditto when  is replaced by 
only the third node is selected. Therefore there is an issue with the predicate
 being used. This is at odds with the java implementation's evaluation of
the same expression, which, as expected returns only one node when  is used.
This issue is observed on Linux (kernel 2.4.7-10 and above), Win32(2000) and
The bug was seen in the last version of Xalan I was using (1.2) but is still
present in the current release (1.6). I am using the default xerces (2.3.0).
Here is a code snippet to clarify my usage.
const XObjectPtr dataObj = theEvaluator.evaluate(
if (dataObj->getType() != XObject::eTypeNodeSet)
return new MutableNodeRefList((const NodeRefList)dataObj->nodeset());
The context node is the document node. The prefix resolver has been extended in
my impl but since there are no namespaces in my simplified example this should
not be an issue.
If you need any more information then I will be happy to oblige.