Am 27.03.2002 11:21 Uhr schrieb "Cyrille Giquello" unter <[EMAIL PROTECTED]>:
> 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 > > > Cyrille, the src:xyz attributes don't belong to the original doc but are inserted by xindice. They belong to the xindice namespace. The src:key attribute contains the document key you have used when inserting the document (or a hey key generated by xindice if you've inserted the doc without any key) For retrieving the doc with the key "test2" you need no XPath query. Instead you can use xindice's "retrieve document" option: xindice rd -c xindice://mls.ktaland:4080/db/testdb -n test2 Good luck, Carsten -- Medizinische Hochschule Hannover Fachhochschule Hannover Abt. H�matologie und Onkologie FB Informations- und Kommunikationswesen Carl-Neuberg-Stra�e 1 Ricklinger Stadtweg 120 30625 Hannover 30459 Hannover ++49-511-9296-1650 http://summit-bmt.fh-hannover.de
