Thanks Nutan, The product ID's in this case were "loaded" as ' product_id="120320" ' (my single quotes) in accordance with the XML specification for attribute / value pairs. The suggested syntax ( xindice xpath -c /db/vp -q "/[EMAIL PROTECTED]'VPU-1001']" ) is still not working (see original posting).
Carl Holm Nutan Kaul wrote: > I found out when it works when it does not. > > If you laod product-id without double quote and try to query with the given > value of product_id, it won't be retrieved. > However, if you have loaded product_id with double quotes (i.e. > product_id="120320") then the following query will retrieve > it: > xindice xpath -c /db/vp -q "/[EMAIL PROTECTED]'VPU-1001']" > > -Nutan > > ----- Original Message ----- > From: "Nutan Kaul" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Tuesday, May 14, 2002 9:45 AM > Subject: Re: Xpath query syntax > > > I am running xindice on Unix and am having the same problem. > > > > -Nutan > > > > ----- Original Message ----- > > From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]> > > To: <[email protected]> > > 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: [email protected] > > > 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: [email protected] > > > > 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] > > > > >
