You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Pascal Heus <pa...@gmail.com> on 2012/07/03 17:11:06 UTC

Running xquery against non-document node?

Am trying to run a simple xquery statement such as
var1.execQuery("count(varCatgry)");
where var1 is a VarType (XmlObject) but am getting the following error
form Saxon:
net.sf.saxon.trans.XPathException: Source object represents a node other
than a document node
Can I only run a execQuery against a document?
This is with xmlbeans-xpath 2.5 and saxon-HE 9.4
thanks
*P

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org