Hi

Were running Xindice 1.0 (Birthday) with j2dk1.4.0 on Win2k SP2

Create a collection say /db/stafflist and add am XML document like:

<?xml version="1.0"?>
<addressbook>
<person>
   <fname>Homer</fname>
   <lname>Simpson</lname>
   <phone type="work" >123-456-7890</phone>
   <phone type="home" >234-567-8901</phone>
   <phone type="cell" >456-789-0123</phone>
   <email type="home" >[EMAIL PROTECTED]</email>
   <email type="work" >[EMAIL PROTECTED]</email>
   <address type="home">1234 W. Springfield</address>
   <address type="work" >34 N. Atom Way</address>
</person>
<person>
...

...
</person>
</addressbook>

Now issuing the query:

xindice xpath_query -c /db/stafflist -q //person/email

returns all email addresses fine, but

xindice xpath_query -c /db/stafflist -q //person[lname="Smith"]

returns nothing.

I've tried changing/playing around with the quoting etc. but cannot get
xpath queries that  reference element or attribute values return anything.

Help appreciated.

John

[EMAIL PROTECTED]    webhelp.ucs.ed.ac.uk
Information Tools      +44 131 650 6915 Phone
Computing Services     +44 131 650 6547 Fax
The University of Edinburgh, Main Library
George Sq., Edinburgh EH8 9LJ

Reply via email to