Elena Litani wrote:
According to the W3C recommendation, an XPahEvaluator

The XPath module is a working group Note, not a W3C recommendation [1].

you're right, sorry...


In general Xerces will only support XPath module if Xalan implementation is
in the classpath.

I've got both.


Xerced does not support direct casting, but as described in the "Mixed
implementations" [2] section the implementation can be obtained using
Node.getFeature(..) method.

There are might be a bug in Xerces though, I believe it should only return
true for Node.isSupported(feature, version) with "+XPath" not "XPath"

Thanks for the precision. I guess there are bugs in xerces on this topic, because :
both isSupported("XPath", "3.0") and isSupported("+XPath", "3.0") give the same answer : true.


Concerning isSupported("XPath", "3.0")
  it should be false, because the direct casting is not supported

Concerning isSupported("+XPath", "3.0")
in the xerces 2.6.2 release, the org.w3c.dom.Node lacks the getFeature declaration. Then I can not write
evaluator = (XPathEvaluator) doc.getFeature("XPath", "3.0");
because there is a compilation error.


I have tested the cvs version. The getFeature method is declared in the Node interface. good.
But after
evaluator = (XPathEvaluator) doc.getFeature("XPath", "3.0");


evaluator is null.

well, any comments ? Am I wrong ?

regards

--
XPath free testing software :  http://www.opikanoba.org/lantern/
Fr�d�ric Laurent                        http://www.opikanoba.org


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to