At 11:49 am -0500 21/2/02, Vadim Gritsenko wrote:
>> From: Jeremy Quinn [mailto:[EMAIL PROTECTED]]
>ing
>>
>> Hi All,
>>
>> Can anyone give me an example of aggregating with the
>DirectoryGenerator?
>>
>> I know how to do it for assets that come from the FileGenerator but
>not
>> anything else.
>
>What's the difference?


Thanks

this is what I ended up doing:

                <map:pipeline internal-only="true">
                        <map:match pattern="dir/**">
                                <map:generate type="directory" src="docs/{1}"/>
                                <map:serialize type="xml"/>
                        </map:match>
                </map:pipeline>

                <map:pipeline>
                        <map:match pattern="dir/**/">
                                <map:aggregate element="root" label="content">
                                        <map:part src="cocoon:/dir/{1}"/>
                                        <map:part src="editor/docs/editor.xml"/>
                                </map:aggregate>
                                <map:transform 
src="editor/stylesheets/editor-page2html.xsl">
                                        <map:parameter name="target-dir" value="{1}/"/>
                                        <map:parameter name="behaviour" value="dir"/>
                                </map:transform>
                                <map:serialize type="html"/>
                        </map:match>
                </map:pipeline>

It works ....

Thanks

regards Jeremy

-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:[EMAIL PROTECTED]>                    <http://www.media.demon.co.uk>
   <phone:+44.[0].20.7737.6831>             <pager:[EMAIL PROTECTED]>

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