Hi,
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>
Where testXML is a an action attribute set in my-xsp-action.xsp.

I would like this to work with aggregates. I know something can be achieved with session objects, but surely there has to be better way. I am using Cocoon 2.1.9. We can do similar things with flow attributes.

Thanks.

--
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to