Yann Secq wrote:
> For the moment, I haven't found how to retrieve XML
> documents through an XPath query. If anyone knows, I'll be
> glad to know as well :)


Guys,

please *don't* use the XMLDB generators. They are going to be deprecated 
RSN, since they are replaced by the much more powerful Source 
abstraction that allows to use plain XMLDB URIs to retrieve documents 
and, yes :), XPath-query the collections :)

Usage is straightforward: put the correct DB configuration in 
cocoon.xconf and use xmldb:// URLs wherever you want in the sitemap :)

If you are willing to do XPath queries all you need is to use an 
xpointerish syntax such as:

xmldb:xindice://my.host.name/my/collection/#//my/xpath[@query]

Please also note that for the brave ones there is also an ongoing XMLDB 
transformer worth noticing in scratchpad.

HTH,

-- 
Gianugo Rabellino


---------------------------------------------------------------------
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]>

Reply via email to