cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick <>
Subject Re: namespaces in xmldb queries
Date Tue, 27 Jul 2004 12:54:28 GMT
Hi qMax,

It seemes that the only possible way to avoid namespaces problem is not 
to use XSLT transfotmations in any form. Thus, regular XSLTs and XSPs 
(they use logicsheets) are not suitable for this. Luckly, you can use JX 
generator to produce the XMLDB Queries. Here is an example:

JX Template:

<?xml version="1.0"?>
<page xmlns:xmldb="">
     <xmldb:query type="update" 
xmlns:xupdate="" version="1.0">
             <xupdate:append select="/rss/channel">
     <xmldb:query type="update" oid="extendedFeedRepository.xml">
xmlns:xupdate="" version="1.0">
                 <extendedBody author="${cocoon.parameters.userId}" 


<map:match pattern="addNewsItem">
     <map:generate type="jx" src="queries/updateRssQuery.xml">
         <map:parameter name="userId" value="{ID}"/>

     <map:transform type="xmldb">
         <map:parameter name="base" 

Sorry, this is not the best example for the namespaces, but when I tried 
to use it in conjuntion with topic maps (which use namespaces 
extensively), I was able to perform the queries.



qMax wrote:

> IIRC in stable cocoon release 2.1.5 there's no way to use namespaces in
> xmbdb-source queries as welll as with xmldb transformer.
> Are there alternative solutions to use xml db with namespaces at all ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message