Hi Cyrille!

I don'r know if I got your problem right, but if you already have the source
key you don't need to query at all, just retrieve the document, because the
src:key is the xml-object-id:

Command line:
xindice retrieve_document -c /db/your_collection -n objectID

XMLDBSourceHandler:
<map:generate
src="xmldb:xindice://localhost:4080/db/your_collection/{objectID}">

I hope I helped

Axel


-----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