Brian,

I just put together a real quick test.  I have the
following collection:

/db/addissue

It has 100 very small documents in it.

I put the following in my sitemap.xmap:

<map:pipeline>
 <map:match pattern="addissue/**">
  <map:match type="request-parameter"pattern="xpath">
   <map:generate 
src="xmldb:xindice://localhost:8080/db/addissue/{../1}#{1}"/>
   <map:serialize type="xml"/>
  </map:match>
  <map:generate 
src="xmldb:xindice://localhost:8080/db/addissue/{1}"/>
  <map:serialize type="xml"/>
 </map:match>
</map:pipeline>

(sorry for the word-wrap problem)

I was able to get the listing with:

http://localhost/cocoon/~mdeggers/addissue/

A particular document as:

http://localhost/cocoon/~mdeggers/addissue/out00.xml

I am using Cocoon 2.1.4-dev checked out from CVS on
12/15/2003.

My cocoon.xconf looks like:

<component-instance 
class="org.apache.cocoon.components.source.impl.XMLDBSourceFactory"
name="xmldb">

<!-- Xindice driver -->
<driver 
 class="org.apache.xindice.client.xmldb.DatabaseImpl" 
 type="xindice"/>

<!-- Xindice 1.1 Embedded driver -->
<driver 
class="org.apache.xindice.client.xmldb.embed.DatabaseImpl"
type="xindice-embed"/>

<!-- Add here other XML:DB
  compliant databases drivers -->
</component-instance>

Can you reach your collection using the command line
tools?

Try the following:

xindice ld -c \
 xmldb:xindice://localhost:8080/db/restaurants

If you can, then there is something wrong with:

a) cocoon.xconf
b) sitemap.xmap
c) current CVS checkout of Cocoon

If you can't, then there is a problem with your
installation of Xindice on Tomcat (?)

HTH
/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

Reply via email to