In message <[EMAIL PROTECTED]>, Gianugo Rabellino <[EMAIL PROTECTED]> writes
Richard Light wrote:
This is
what I want to do (surely nothing unusual):
  - use Cocoon as my XML-XSLT-capable middleware;
 - use Xindice as my native XML database sitting in the background;
 - use XSLT to accomplish as much as possible of my system logic
 First off, I couldn't find a way to install Xindice within Cocoon
without building a WAR file.  Is there a way to do this?

All you need is http://www.cocooncenter.org/cc/documents/resources/xindice/index.html

Yes, I've read this document. However, it appears to be out of date. In particular it refers to Cocoon 2.0.1, whereas I downloaded 2.0.4. The "shortly to be deprecated" xmldb code in Cocoon's sitemap.xmap is no longer present, which makes it hard to work out what one should do. I tried adding the protocol and driver information to cocoon.xconf as directed, but this only had the effect of preventing Cocoon from starting at all.


I did pick out the code to run "xmldb" in my sitemap from this document, but I'm afraid it wasn't at all obvious that it's "all I need".

I've just tried following the instructions again, and installing Tomcat without the Xindice WAR file, and it doesn't seem to be working any better.

But be careful here:

In theory you should be able to use the document() function in your stylesheet with the XML:DB pseudo protocol right away. But using document() in Cocoon is seriously deprecated, for architectural and caching issues: there are better ways of doing it.

Why an Xinclude transformation in the pipeline wouldn't work?

Well, one example would be where my database contains lots of individual entries describing a single concept in a thesaurus or Topic Map, and I want to recursively "fetch" all the concepts which are linked to the concept I am starting from.


Richard Light
--
Richard Light
SGML/XML and Museum Information Consultancy
[EMAIL PROTECTED]



Reply via email to