What type of object is the variable
I suspect that this regression is an adverse consequence of
the patch for bug 2076001. I've reproduced it for the case where "is" is a
DOM Node and for the case where it is a DOMSource. Unfortunately the interface
is untyped and the specification gives no definitive list of object types
allowed for this parameter. The whole JAXP XPath interface is very fragile, as
well as being overly oriented to XPath 1.0 and DOM, and I would really recommend
using s9api instead if you can.
SAXON B 18.104.22.168 (latest
NodeList isList =
Exception in thread "main"
same code was working fine using SAXON B 22.214.171.124 (I nevr tested other
minor-versions between 2 and 5).
The evaluate method should return the
expected XPathConstants.NODESET data type which is
The java.util.ArrayList type could be allowed
through another XPath constant e.g. SaxonXpathConstants.ARRAYLIST
Hope this helps