Hello Cyrille.

In my understanding, src:key is not part of the document as such and can not
be used directly in query expressions.
However, src:key is added to the document element on output, so you can use
this attribute in further processing the output document, e.g. through XSLT
where you could refer it through something like
<xsl:value-of select="@src:key"/>.

Anders
----- Original Message -----
From: "Cyrille Giquello" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 27, 2002 11:21 AM
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