Daniel Fournier wrote:
>Hi happy Cocoon users,
>
How 'bout unhappy developers? :-?
>I have installed xIndice and eXist to test these DB in the Cocoon environment.
>
>After configuring cocoon.xconf and following advices from cocooncenter or
>others users from this list, I'm testing xIndice (or eXist) acces thru the
>xmldb protocol, i.e. (from my sitemap)
>
><map:match pattern="xindice/**"><!--collection/#/xpath-->
> <map:generate src="xmldb:xindice://localhost:4080/db/{1}"/>
> <map:serialize type="xml"/><!--just to check the result from xIndice/eXist-->
><:map:match>
>
>When I send the following HTTP request::
> http://127.0.0.1:8080/cocoon/xindice/test/#/test.xml (new protocol usage)
>
This won't fly: Sitemap parameter {1} will get (AFAIR) only 'test/'
part, nothing after '#'. See samples sitemap for '#' handling.
>I only get and empty html document .
>
>However, according to the logs everything seems right, xIndice/eXist logs the
>access and, I presume, returns aa a result set, the content of my test.xml
>document.
>
Query like xmldb:xindice://localhost:4080/db/test/ will return content of the
*collection* named 'test'.
If you append xpath, like xmldb:xindice://localhost:4080/db/test/#/test.xml, then
result will be all documents with root *node* named 'test.xml'.
I.e., if you have collection like:
<collection ...>
<test.xml>
...
</test.xml>
<data>
</data>
</collection>
Result of the query will be:
<result ...>
<test.xml/>
</result>
Vadim
>Anybody as an idea of what's wrong ?
>
>Thanks happy Cocoon users ;-)
>
>Daniel Fournier
>
>
---------------------------------------------------------------------
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]>