It seems, that you must use Collection.getResource(), because "src:key"
is added after executing XPATH.

This is my experience. But I'm not a Xindice professionell.



-----Original Message-----
From: Cyrille Giquello [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 27, 2002 11:22 AM
To: [email protected]
Subject: newbie: querying on src:key


hello world,

Is someone can give me a fast tutorial on querying on "src:key" ?

Here is my first query :
[EMAIL PROTECTED] xindice]$ xindice xpath  -c
xindice://mls.ktaland:4080/db/testdb -q //doc
    <?xml version="1.0"?>
    <doc xmlns:src="http://xml.apache.org/xindice/Query";
src:col="/db/testdb" src:key="test">Coucou</doc>

    <?xml version="1.0"?>
    <doc xmlns:src="http://xml.apache.org/xindice/Query";
src:col="/db/testdb" src:key="test2">Test2 Coucou</doc>

But I can't try how to querying on attribut src:key to get only one
document (<doc>) with src::key = "test2".

Thanx for your fast help !

Cyrille.

 -----------------------------------------
Encryption | Duncan Campbell | DST | Blacklisted 411 | ECHELON | 2600 |
PGP | Corsica | NSA



Reply via email to