Fernando, That worked...The first did at least...
Thanks...!! -----Oorspronkelijk bericht----- Van: Fernando Padilla [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 7 mei 2002 22:54 Aan: xindice-users@xml.apache.org Onderwerp: Re: Newbie question, Usage Hello. Here are a few options to get it to work: "xmldb:xindice://host:port/db/bugdb/PDF" ( get document, whose id is "PDF" from the "bugdb" collection ) "xmldb:xindice://host:port/db/bugdb/#/[EMAIL PROTECTED]()='src:key' and string(.)='PDF']]" ( run the xpath ( after the # ) on the "bugdb" collection ) ( the xpath states to find the functionality element that has an attribute named 'src:key' ( to avoid namespace issues ) and whose value is 'PDF' ) The first option, I believe is the correct option, if you're accessing it through an XMLDB url. The second option, though correct XPATH, I don't think that it'll work because the 'src:key' attribute is generated by XIndice when it returns a document. So I don't think that attribute exists when XIndice is running the XPATH in the database... but I could be mistaken. But check it out and see! On Tue, 7 May 2002, Graaf, Edgar de (fin) wrote: > 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 > >