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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>