cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcas...@s-und-n.de
Subject Re: How to integrate xindice with cocoon
Date Mon, 07 Jan 2002 12:46:48 GMT

If you have the cvs version of cocoon you should use the XMLDB pseudo
protocol (The generators are kind of deprecated).
I run it with dbXML 1.0b4.
You need to copy dbXML.jar, juggernaut-1.0.jar and openorb-1.2.0.jar into
WEB-INF/lib.
Enter the following into cocoon.xconf:

<source-handler class="de.sundn.prod.sunshine.connector.SourceHandlerImpl">
     <protocol name="xmldb" class
="org.apache.cocoon.components.source.XMLDBSourceFactory">
          <driver type="dbxml" class
="org.dbxml.client.xmldb.DatabaseImpl"/>
     </protocol>
</source-handler>

Then you can access you documents just like on file system but specifying
the xmldb protocol:

<map:generate src="xmldb:dbxml:///db/col1/col2/doc1.xml"/>

You can specify XPath queries like:

<map:generate src="xmldb:dbxml:///db/col1/col2#//elem1"/>

hope this helps
Guido

cocoon schrieb:
> Hello,
>
> i try to use xindice with cocoon2, so every xml-file is delivered
> through xindice. How to realize that?
> I heard something about a XMLDB-Generator, but i canĀ“t find the
> java-file in the cvs tree.
> Where is it? And how must the sitemap-file be changed to deliver
> xml-files via xindice?
> I am new to xml databases and cocoon2, so every hint would be fine.
>
> With regards
> Thomas Sempf
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message