hope you;ve taken enough time with xindice before ending up disappointed :-)

on your xupdate query, you have a malformed xml document:
The line

        <xu:update select=\"expose...>

is incorrect and illegal.

you may wanna try this: <xu:element name=\"expose...>. (where ... is the
properly formed attribute query.)

for xupdate usability, check this site:
http://www.xmldatabases.org/projects/XUpdate-UseCases/

hope that imoproves your comfort level with xindice.

-nani

-----Original Message-----
From: J�rn Heid [mailto:[EMAIL PROTECTED]
Sent: Friday, May 03, 2002 2:55 PM
To: [email protected]
Subject: Confused about Xindice



I'm a little bit disappointed about Xindice. I hope you can help me.


1. On xml.apache.org the Xindice-mailinglists are missing.
2. I couldn't find any way to set the log level of Xindice.

3. What's wrong with that?

C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />

Okay, that's good, let's try another query

C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /[EMAIL PROTECTED]
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />

Okay, good, too. There seems to be an attribute called titel. It must be
'sss', right?

C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /[EMAIL PROTECTED]'sss']

No result? Can't understand.

4. I'm wondering how anybody can use Xindice with XUpdate. The following
lines

<xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate";>
<xu:update select="/[EMAIL PROTECTED]'sss']/@art">Wohnimmobilie</xu:update>
</xu:modifications>

throws an org.xmldb.api.base.XMLDBException: Query Processing Error.
No more error messages? Error code is 641, but where's the docs about it?
(BTW, I'm not using 1.4).



Please help me, probably I've forgotten to RTFM (although I think I have)...

JOERN


Reply via email to