Try: //*/[EMAIL PROTECTED]'VPU-1001']
That should search all attributes... Mark clholm wrote: > Jeff, > > The first of your two suggestions > ( "/products/[EMAIL PROTECTED]'VPU-1001']") > works as expected. > > In my cursory understanding of Xpath I somehow missed the apparent necessity > of > > including the root element of the XML document in the search string. > > Many thanks! > > Carl Holm > > Jeff Greif wrote: > > > I think your query is wrong because product_id is an attribute of the > > product element, not the products element. Depending on what you want to > > retrieve, the query should be either > > > > "/products/[EMAIL PROTECTED]'VPU-1001']") > > > > or > > > > "/[EMAIL PROTECTED]'VPU-1001']" > > Jeff > > ----- Original Message ----- > > From: "clholm" <[EMAIL PROTECTED]> > > To: <xindice-users@xml.apache.org> > > Sent: Tuesday, May 14, 2002 5:13 PM > > Subject: Re: Xpath query syntax > > > > > Thanks Mark, > > > > > > As mentioned elswhere in this thread, the suggested syntax > > > (xindice xpath -c /db/vp -q "/[EMAIL PROTECTED]'VPU-1001']") > > > is not working. > > > > > > Carl Holm > > > > > > "Mark J. Stang" wrote: > > > > > > > The proper syntax is > > > > > > > > xindice xpath -c /db/vp -q "/[EMAIL PROTECTED]'VPU-1001']" > > > > > > > > On Windows, if you don't wrap the query in double quotes it has fits. > > This > > > > is due to windows, not Xindice. > > > > > > > > HTH, > > > > > > > > Mark > > > > > > > > Nutan Kaul wrote: > > > > > > > > > I am running xindice on Unix and am having the same problem. > > > > > > > > > > -Nutan > > > > > > > > > > ----- Original Message ----- > > > > > From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]> > > > > > To: <xindice-users@xml.apache.org> > > > > > Sent: Tuesday, May 14, 2002 12:44 AM > > > > > Subject: RE: Xpath query syntax > > > > > > > > > > > I (still) have the same problem. > > > > > > > > > > > > -----Oorspronkelijk bericht----- > > > > > > Van: clholm [mailto:[EMAIL PROTECTED] > > > > > > Verzonden: dinsdag 14 mei 2002 5:49 > > > > > > Aan: xindice-users@xml.apache.org > > > > > > Onderwerp: Re: Xpath query syntax > > > > > > > > > > > > > > > > > > > > > > > > Thanks to John Meyer for a swift reply! > > > > > > > > > > > > I am running a WINNT command prompt. The suggested line > > > > > > > > > > > > xindice xpath -c /db/vp -q '/[EMAIL PROTECTED]"VPU-1001"]' > > > > > > > > > > > > throws a rather lengthy DEBUG message on the server monitor. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > John Meyer wrote: > > > > > > > > > > > > > Are you running this command from a windows command prompt? If so > > you > > > > > need > > > > > > > to use single quotes around your xpath query and double quotes to > > > > > > demarcate > > > > > > > strings. The following line should work: > > > > > > > > > > > > > > xindice xpath -c /db/vp -q '/[EMAIL PROTECTED]"VPU-1001"]' > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: clholm [mailto:[EMAIL PROTECTED] > > > > > > > Sent: Monday, May 13, 2002 7:32 PM > > > > > > > To: xindice-users@xml.apache.org > > > > > > > Subject: Xpath query syntax > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > Regarding Xpath queries and Xindice. > > > > > > > > > > > > > > I am finding the expected results* after running the following: > > > > > > > > > > > > > > xindice xpath -c /db/vp/ -q /products > > > > > > > > > > > > > > However, when I run either of the following: > > > > > > > > > > > > > > xindice xpath -c /db/vp -q > > /[EMAIL PROTECTED]"VPU-1001"] > > > > > > > (as per example 5.1 in the Xindice Command Line Tools > > > > > > > Reference) > > > > > > > > > > > > > > xindice xpath -c /db/vp -q > > > > > > "/[EMAIL PROTECTED]'VPU-1001']" > > > > > > > , > > > > > > > > > > > > > > then Xindice draws a blank. > > > > > > > > > > > > > > *<?xml version="1.0"?> > > > > > > > <products xmlns:src="http://xml.apache.org/xindice/Query" > > > > > > > src:col="/db/vp" src:key="prods"> > > > > > > > <product product_id="VPU-1001"> > > > > > > > <title>Mamadou Ly Mandinka Drum Master</title> > > > > > > > <description>Mandinka drumming</description> > > > > > > > </product> > > > > > > > <product product_id="VPU-1002"> > > > > > > > <title>Tabala Wolof</title> > > > > > > > <description>Sufi drumming</description> > > > > > > > </product> > > > > > > > </products> > > > > > > > > > > > > > > I may be overlooking something entirely obvious, but would > > appreciate > > > > > > > hearing from anyone who has been successful with this kind of > > query. > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > Carl Holm > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > Regarding Xpath queries and Xindice. > > > > > > > > > > > > > > I am finding the expected results* after running the following: > > > > > > > > > > > > > > xindice xpath -c /db/vp/ -q /products > > > > > > > > > > > > > > However, when I run either of the following: > > > > > > > > > > > > > > xindice xpath -c /db/vp -q > > /[EMAIL PROTECTED]"VPU-1001"] > > > > > > > (as per example 5.1 in the Xindice Command Line Tools > > > > > > > Reference) > > > > > > > > > > > > > > xindice xpath -c /db/vp -q > > > > > > "/[EMAIL PROTECTED]'VPU-1001']" > > > > > > > , > > > > > > > > > > > > > > then Xindice draws a blank. > > > > > > > > > > > > > > *<?xml version="1.0"?> > > > > > > > <products xmlns:src="http://xml.apache.org/xindice/Query" > > > > > > > src:col="/db/vp" src:key="prods"> > > > > > > > <product product_id="VPU-1001"> > > > > > > > <title>Mamadou Ly Mandinka Drum Master</title> > > > > > > > <description>Mandinka drumming</description> > > > > > > > </product> > > > > > > > <product product_id="VPU-1002"> > > > > > > > <title>Tabala Wolof</title> > > > > > > > <description>Sufi drumming</description> > > > > > > > </product> > > > > > > > </products> > > > > > > > > > > > > > > I may be overlooking something entirely obvious, but would > > appreciate > > > > > > > hearing from anyone who has been successful with this kind of > > query. > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > Carl Holm > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > Regarding Xpath queries and Xindice. > > > > > > > > > > > > > > I am finding the expected results* after running the following: > > > > > > > > > > > > > > xindice xpath -c /db/vp/ -q /products > > > > > > > > > > > > > > However, when I run either of the following: > > > > > > > > > > > > > > xindice xpath -c /db/vp -q > > /[EMAIL PROTECTED]"VPU-1001"] > > > > > > > > > > > > > > (as per example 5.1 in the Xindice Command Line Tools > > > > > > > Reference) > > > > > > > > > > > > > > xindice xpath -c /db/vp -q > > > > > > "/[EMAIL PROTECTED]'VPU-1001']" > > > > > > > , > > > > > > > > > > > > > > then Xindice draws a blank. > > > > > > > > > > > > > > *<?xml version="1.0"?> > > > > > > > <products xmlns:src="http://xml.apache.org/xindice/Query" > > > > > > > src:col="/db/vp" src:key="prods"> > > > > > > > <product product_id="VPU-1001"> > > > > > > > <title>Mamadou Ly Mandinka Drum Master</title> > > > > > > > <description>Mandinka drumming</description> > > > > > > > </product> > > > > > > > <product product_id="VPU-1002"> > > > > > > > <title>Tabala Wolof</title> > > > > > > > <description>Sufi drumming</description> > > > > > > > </product> > > > > > > > </products> > > > > > > > > > > > > > > I may be overlooking something entirely obvious, but would > > appreciate > > > > > > > hearing from anyone who has been successful with this kind of > > query. > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > Carl Holm > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > >