You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Shruti Ahuja <sh...@noida.hcltech.com> on 2001/09/12 13:11:40 UTC

eval function

Hi,


i am using the XPathAPI.eval(Node ContextNode,String str) function to
evaluate an XPath Query on a context node which is a Comment Node or a
Processing Instruction.
It does not give me correct result .

The query is like -

contains(./,"book")

which returns false if the context node here is <!-- this is a book--> 

Does this eval function has a limitation that the Context Node can only be
an element node or a text node ?



Thanks.
Shruti.