Try quoting the queries, probably using "aaa" on the outside and 'aaa'
inside, as in

 xindice xpath -c /db/konlin -q "//[EMAIL PROTECTED] = 'p1']"

and

xindice xpath -c /db/konlin -q "//person[child::name = 'Konrad Inglot']"

This is to prevent certain 'special' characters from being interpreted by
the command shell.

Jeff


----- Original Message -----
From: "Konlin" <[EMAIL PROTECTED]>
To: "Xindice" <[email protected]>
Sent: Thursday, March 20, 2003 8:55 AM
Subject: XPath problem


> Hello,
>
> I've such a XML file in /db/konlin collection:
>
> <?xml version="1.0"?>
>
> <people>
>         <person personID="p1">
>                 <name>Konrad Inglot</name>
>                 <address>somewhere in Poland</address>
>                 <tel>some numbers</tel>
>                 <email>[EMAIL PROTECTED]</email>
>         </person>
> </people>
>
> When I query Xindice with:
>
> xindice xpath -c /db/konlin -q //[EMAIL PROTECTED] = "p1"]
>
> nothing is retrieved from the base.
> And when I query with:
>
> xindice xpath -c /db/konlin -q //person[child::name = "Konrad Inglot"]
>
> I got an error (translation from polish):
>
> At this moment Inglot"]"==" was not expected.
>

Reply via email to