BAD MSG:
gets
ost for the attribute.=20
It should  be: [EMAIL PROTECTED]"home"]
Maybe this is XP command line problem as all other solutions using ' for
quoting do not work either.

Klemens

-----Urspr=FCngliche Nachricht-----
Von: Dr. Klemens Waldh=F6r [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. Juli 2002 18:04
An: [email protected]
Betreff: AW: AW: AW: XPATH usage


Hi,

I made the changes you proposed. The query as such works now but -
surprise - it always returns now the same answer:

c:\Programme\xml-xindice-1.0>xindice xpath_query -c /db/klemens -q
/[EMAIL PROTECTED]"120320"] <?xml version=3D"1.0"?> <product
product_id=3D"120320" xmlns:src=3D"http://xml.apache.org/xindice/Query";
src:col=3D"/db/klemens" src:key=3D"test3">
   <description>Glazed Ham</description>
</product>

c:\Programme\xml-xindice-1.0>xindice xpath_query -c /db/klemens -q
[EMAIL PROTECTED]"de"] <?xml version=3D"1.0"?> <product product_id=3D"120320"
xmlns:src=3D"http://xml.apache.org/xindice/Query"; =
src:col=3D"/db/klemens"
src:key=3D"test3">
   <description>Glazed Ham</description>
</product>

I just changed the last lines in the bat file:

REM set CL=3D
REM :LOOP
REM if "%1"=3D=3D"" goto DONE
REM set CL=3D%CL% %1
REM shift
REM goto LOOP
REM :DONE

:runAnt
%JAVACMD% -Xms16m -Xmx128m -Djacorb.verbosity=3D0
-Dxindice.home=3D%XINDICE_HOME% -Dcmd.home=3D%XINDICE_HOME%\bin =
-classpath
%LOCALCLASSPATH% org.apache.xindice.tools.XMLUserTools %CL%



:end
set LOCALCLASSPATH=3D

Klemens

-----Urspr=FCngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. Juli 2002 14:48
An: [email protected]
Betreff: Re: AW: AW: XPATH usage


There is (was?) a bug in the window's command file for=20
Xindice which incorrectly passes the command line=20
parameters to the java application.  I posted a revised=20
command file some weeks back to this group which=20
resolved the issue.

Julian
> Hi,
>=20
> This does not work either. The really curious thing is that sometimes
> other queries work.
>=20
> I tried the query also in some XINDICE browser and there it does not
> work too. Thus I think this has nothing to do with the way how Windows
> (XP) treats command lines.
>=20
> Klemens
>=20
> -----Urspr=FCngliche Nachricht-----
> Von: Mark J. Stang [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 8. Juli 2002 15:06
> An: [email protected]
> Betreff: Re: AW: XPATH usage
>=20
>=20
> Shouldn't it be:
>=20
> xindice xpath -c /db/klemens -q "/[EMAIL PROTECTED]'120320']"
>=20
> xpath not xpath_query...
>=20
> Mark
>=20
> "Dr. Klemens Waldh=F6r" wrote:
>=20
> > I tried this too. The answer I get is:
> >
> > c:\Programme\xml-xindice-1.0>xindice xpath_query -c /db/klemens -q=20
> > "/[EMAIL PROTECTED]'120320']" Results in:
> >
> > "=3D'120320']""=3D=3D""" ist syntaktisch an dieser Stelle nicht=20
> > verarbeitbar.
> >
> > Which literally translated means: "=3D'120320']""=3D=3D""" cannot be
> > treated
> > (?) syntactically at this point.
> >
> > Klemens
> >
> > -----Urspr=FCngliche Nachricht-----
> > Von: Mark J. Stang [mailto:[EMAIL PROTECTED]
> > Gesendet: Samstag, 6. Juli 2002 21:52
> > An: [email protected]
> > Betreff: Re: XPATH usage
> >
> > This is necessary on Windows.   Otherwise, the command-line parser
in
> > windows gets screwed up.   It is a platform thing...
> >
> > Mark
> >
> > "Richard R. Liu" wrote:
> >
> > > Try
> > >
> > > xindice xpath_query -c /db/klemens -q=20
> > > "/[EMAIL PROTECTED]'120320']"
> > >
> > > i.e., double quotes around the query and single quotes within it.
> > >
> > > > -----Original Message-----
> > > > From: Rizwan Virk [mailto:[EMAIL PROTECTED]
> > > > Sent: Saturday, July 06, 2002 17:07
> > > > To: [email protected]
> > > > Subject: RE: XPATH usage
> > > >
> > > >
> > > > hi,
> > > >
> > > > try it with single quotes ... this makes a difference sometimes=20
> > > > ... /[EMAIL PROTECTED]'120320']
> > > >
> > > > Thanks
> > > > Riz
> > > >
> > > > ------------------------------
> > > > Riz Virk, (617) 905-3518
> > > > [EMAIL PROTECTED], [EMAIL PROTECTED]
> > > > http://www.xyztechnologies.com
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Dr. Klemens Waldh=F6r [mailto:[EMAIL PROTECTED]
> > > > Sent: Saturday, July 06, 2002 10:54 AM
> > > > To: [email protected]
> > > > Subject: XPATH usage
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I tried several times to run the XPATH example given in the user

> > > > manual. It does not seem to work.
> > > >
> > > > I imported several files. Also one with given in the manual. My=20
> > > > collectionn is called db/klemens.
> > > >
> > > > <?xml version=3D"1.0"?>
> > > > <product product_id=3D"120320">
> > > >    <description>Glazed Ham</description>
> > > > </product>
> > > >
> > > > Now when I search using
> > > >
> > > > c:\projects\perl\tm>xindice xpath_query -c /db/klemens -q=20
> > > > /[EMAIL PROTECTED]"120320"]
> > > >
> > > > =3D=3D=3D=3D> No result !
> > > >
> > > > If I use the following simple XPATH query instead:
> > > >
> > > > c:\projects\perl\tm>xindice xpath_query -c /db/klemens -q
> > > > /product
> > > >
> > > > I get:
> > > >
> > > >
> > > > <?xml version=3D"1.0"?> <product product_id=3D"120320"=20
> > > > xmlns:src=3D"http://xml.apache.org/xindice/Query";
> > > > sr:col=3D"/db/klemens"
> >
> > > > src:key=3D"test3">
> > > >    <description>Glazed Ham</description>
> > > > </product>
> > > > c:\projects\perl\tm>
> > > >
> > > > It works ! Now what's wrong with the first query ? Do I have to=20
> > > > create an index ? I am really wondering.
> > > >
> > > > With regard to the article mentioned at XINDICE realm it should=20
> > > > work
> >
> > > > too (Apache's Xindice Organizes XML Data Without Schema). The=20
> > > > example there is as follows (although one has to adapt it
because=20
> > > > this is not a valid
> > > > XML document and XINDICE recognises this bug)
> > > >
> > > > "     <?xml version=3D"1.0"?>
> > > >      <product product_id=3D"1" type=3D"widget">
> > > >           <description>foo</description>
> > > >      </product>
> > > >      <product product_id=3D"2" type=3D"widget">
> > > >           <description>bar</description>
> > > >      </product>
> > > >      <product product_id=3D"3" type=3D"widget">
> > > >           <description>foobar</description>
> > > >      </product>
> > > >
> > > > And the author states: If I wanted to write an XPath query to=20
> > > > select
> >
> > > > the second product, I could use the following query string:
> > > >      /[EMAIL PROTECTED]"2"]
> > > > "
> > > >
> > > > So theoretically my statement is correct.
> > > >
> > > > Thanks for your help !
> > > >
> > > > I also used the query in some of the browsers avalable for
> > > > XINDICE
>=20
> > > > and it does not work either. Curiously other queries sometimes=20
> > > > work,
> >
> > > > sometimes not. And it hard to see why one query works and the=20
> > > > other not.
> > > >
> > > > Another question: Is there an easy way to check if XINDICE is=20
> > > > running or not ? Idea is to check through the web if the server
is
>=20
> > > > running or not on a specific machine.
> > > >
> > > > BTW: XINDICE is a cool tool.
> > > >
> > > > Klemens
> > > >
> > > >
> >
> > --
> > Mark J Stang
> > System Architect
> > Cybershop Systems
>=20
> --
> Mark J Stang
> System Architect
> Cybershop Systems
>=20
>=20

Reply via email to