You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Greg Sandell <gs...@iesabroad.org> on 2004/03/02 21:55:44 UTC
equals sign in xpath?
I am using Xindice on Windows. When I use a command like the following
from the shell:
Xindice.bat xpath -c /db/addressbook -q /person/phone
...it works fine, but if I include a predicate with an equals sign like:
Xindice.bat xpath -c /db/addressbook -q /person/phone[@type = "home"]
...I get "org.xmldb.api.base.XMLDBException: :Error Compiling XPath
Expression".
When I look at the output on the Xindice server (ie. Running in Tomcat)
I see:
INFO: [Thread-8] '/db/addressbook' Query collection, query
/person/phone[@type "work"]
...the equals sign gets left out! I've tried escaping the equals sign,
to know avail. Can anyone help?
Thanks,
Greg Sandell