Hi, I copied it from the email. However no result. I get this: D:\xindice\bin>xindice xpath -c /db/bugdb -q "//*[contains(name(),'a')]" 'a')]""=="" niet verwacht op dit moment.
'a')]""=="" niet verwacht op dit moment. means: 'a')]""=="" not suspected at the moment. !? Regards -----Oorspronkelijk bericht----- Van: Carsten Ziegert [mailto:[EMAIL PROTECTED] Verzonden: woensdag 8 mei 2002 10:47 Aan: Mailing List dbXML Onderwerp: Re: Newbie question, Usage The fact that you use the dos prompt indicates that you work on a windows machine ;-) On a windows machine, you'll have to enclose your query in double quotes: xindice xpath -c /db/bugdb -q "//*[contains(name(),'a')]" (in a unix environment, you may exchange single and double quotes) Am 08.05.2002 10:40 Uhr schrieb "Graaf, Edgar de (fin)" unter <[EMAIL PROTECTED]>: > I didn't know this one. Unfortunatly it only gives examples who don't work > with content but I tried the following: > (In the dos prompt) > > xindice xpath -c /db/bugdb -q //*[contains(name(),'a')] > > I have multiple tags containing an a. I get nothing however. > > > -----Oorspronkelijk bericht----- > Van: Mark J. Stang [mailto:[EMAIL PROTECTED] > Verzonden: dinsdag 7 mei 2002 20:30 > Aan: xindice-users@xml.apache.org > Onderwerp: Re: Newbie question, Usage > > > Have you looked at this XPath tutorial? > > http://www.zvon.org/xxl/XPathTutorial/General/examples.html > > > HTH, > > Mark > > "Graaf, Edgar de (fin)" wrote: > >> I guess I am forgetting something important. Anyway here is my xml (one >> record): >> <?xml version="1.0"?> >> <functionality >> xmlns:src="http://xml.apache.org/xindice/Query" >> src:col="/db/bugdb" >> src:key="name"> >> <name>PDF Channel</name> >> <description>PDF with information about the bug >> system</description> >> <need>low</need> >> <bonus>none</bonus> >> <relatedbugs>none</relatedbugs> >> <type>new</type> >> </functionality> >> >> What I would like to do is the following: lets say <name> is unique then > if >> I only want to have a certain name I should get one record. I tried the >> following: .......?xpath=/[EMAIL PROTECTED]:key="PDF"] and >> .......?xpath=/functionality[name="PDF Channel"] >> Both don't work. Well they don't give the result I want... >> >> Heike Franosch said that you can't query src:key because it is not part of >> the document. (thanks) But that only explaints to me why the first doesn't >> work. >> How can I make the second work? >> >> Regards + thanks, >> >> Edgar >> >> -----Oorspronkelijk bericht----- >> Van: Carsten Ziegert [mailto:[EMAIL PROTECTED] >> Verzonden: dinsdag 7 mei 2002 10:02 >> Aan: Mailing List dbXML >> Onderwerp: Re: Newbie question, Usage >> >> Edgar, >> >> could you enclose the xml document you are looking for? >> How are you accessing Xindice? Via command line or Java api? >> >> Am 07.05.2002 9:08 Uhr schrieb "Graaf, Edgar de (fin)" unter >> <[EMAIL PROTECTED]>: >> >>> Hi, >>> >>> Could someone please help me on my way: I have a collection with > multiple >>> records. I wan't to have a record with a certain key. I tried the >> following: >>> .......?xpath=/[EMAIL PROTECTED]:key="PDF"] >>> >>> This give me nothing (only collections/collection with nothing in it.) >>> >>> .....?xpath=/functionality >>> does work. >>> >>> It is probably some stupid mistake but could somebody help me out. >>> >>> Regards, >>> >>> Edgar >>> >> >> -- >> >> 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 > -- 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