I have successfully used this to query Xindice through Cocoon. The first
block is in sitemap.xmap of the cocoon distribution.
<map:match pattern="xpath" type="request-parameter">
<map:generate src="xmldb:xindice://localhost:4080/db/{../1}#{1}"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="mac-find">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:generate src="cocoon:/xmldb/shakespear/?xpath={findThis}"/>
<map:serialize type="xml"/>
</map:act>
</map:match>
Perhaps this may not be the best way but it works a treat.
Perry
----- Original Message -----
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 7:02 AM
Subject: Re: Xindice logicsheet - initial success
> Josema Alonso wrote:
>
> >Dear Friends,
> >
> >Since I got no response to my previous email message,
> >
>
> I've sent email. Why do you need xsp logicsheet and why don't you use
> xmldb protocol with cinclude? This works out of the box, with no effort.
>
> Vadim
>
>
> > I tried it hard and I
> >finally could make a xmldb logicsheet to work with Cocoon. It's the eXist
> >logicsheet. I could only try it for retrieving documents by now but it
works
> >as expected.
> >I'm too tired now. It's been a lot of hours to make Xindice and the
> >logicsheet work with Cocoon and I need some rest. I'll test more tomorrow
> >and I'll try to make a How-To. Now that Isee it running I must say it
> >shoudn't be so hard...
> >I hope I could understand better the whole Cocon Wiki thing and make it
> >available there...if someone can help me a bit here...
> >
> >Best.
> >
> >ps: I've browsed carefully the archives and I read the mailing list
> >frequently. I know there are still some people who can't make Xindice
work
> >with Cocoon. I understand you all... and I must say to all of you...it
can
> >be done! Don't give up! :-)
> >
> >
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>