I got it solved. The query was actually
$ xindice xpath -c /db/test -q "//[EMAIL PROTECTED]'1234']"
(note the double quotes for the query and single quotes for a string)
 
Thanks for your help.
Regards,
Boris
----- Original Message -----
Sent: Thursday, July 24, 2003 1:05 PM
Subject: Re: XPath problem

In additional:
if I use xalan-2.5.1 and xercesImpl-2.4.0 I get the ERROR : Query error on the folliwing query
xindice xpath -c /db/web/news-arch/ -q /news[not(@align='top')]
but this works fine if I use  xalan-2.4.0 and  xercesImpl-2.1.0. In Xalan's bugzilla I can't  find any bugs for this (XPath) problem
(in my opinion the bug is in xindice)

>
>
> May be the problem lies in the shell you are using (Interpretation of quotes
> by the shell)? I got no result using the query
>
> $ xindice xpath -c /db/test -q //[EMAIL PROTECTED]"1234"]
> but the query
> $ xindice xpath -c /db/test -q '//[EMAIL PROTECTED]"1234"]'
> works fine (note the single qotes).
>
> I am using /bin/bash on a mandrake linux box.
>
> hope this helps,
>
> Frank
>
> > Hi all,
> >
> > 1) I have tried the following command line XPath to query my database and
> both of
> > them throw a query error
> >
> > xindice xpath -c /db/rated -s "ipd=http://www.ipdr.org/namespaces/ipdr"
> > -q //ipd:[EMAIL PROTECTED]"WLAN_20030702165635+0200_539055914_1"]
> >
> > xindice xpath -c /db/rated -s "ipd=http://www.ipdr.org/namespaces/ipdr"
> > -q //ipd:[EMAIL PROTECTED]:docId="WLAN_20030702165635+0200_539055914_1"]
> >
> > This is strange as the query //ipd:IPDRDoc works correctly and the docId
> is a copy
> > and paste of the exact id from one of the document
>
> > Can anyone spot the error?


--
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

Reply via email to