cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Passing values from an XSP back to the sitemap
Date Mon, 17 Dec 2007 00:37:16 GMT
On 16.12.2007 17:20 Uhr, Kamal Bhatt wrote:

> I want to be able to get a folder location from an database query, and 
> based on this folder location specify the folder location for some 
> XSLTs. For example, the database may store /xslts/myxslts/ as the 
> location, so in the sitemap, I want to go:
> 
> <map:transform src="{myxsltlocation}/test.xsl"/>
> 
> Now, I know this can be setup in using actions. Where it fails, however, 
> is when you need an aggregate, eg:
> 
>        <map:match pattern="test-xsp-action2">
>          <map:aggregate element="test1">
>            <map:part src="cocoon:/test-xsp-action"/>
>            <map:part src="{testXML}"/>
>          </map:aggregate>
>          <map:serialize type="xml"/>
>        </map:match>
>        <map:match pattern="test-xsp-action">
>          <map:act type="xsp-action" src="my-xsp-action.xsp">
>            <map:generate type="file" src="test2.xml"/>
>            <map:serialize type="xml"/>
>          </map:act>
> 
>          <map:generate  src="test.xml"/>
>          <map:serialize type="xml"/>
>        </map:match>

What exactly is the problem? Couldn't you wrap the map:aggregate with 
the map:act XSP action?

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message