cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: map:aggregate / map:part does only work with XML files?
Date Mon, 01 Sep 2003 09:58:46 GMT
christianmenz@bluewin.ch wrote:

>hi everybody,
>
>I'm using cocoon version 2.1.
>
>I would like to use map:aggreagte to aggregate two XML documents from different
>sources. I hae written a custom generator and I would like to use it in the
>map:part element.
>
>unfortunately this does not work! 
>
>in the generator element I use it like this and it works fine:
>
><map:generate type="atlasextract">
>...some map parameters..
></map:generate>
>
>in the aggregate element i would like to use it as follows:
>
><map:aggregate element="root">
><map:generate type="atlasextract">
>...some map parameters..
></map:generate>
>
><map:generate type="atlasextract">
>...some map parameters..
></map:generate>
>
></map:aggregate>
>
>is there a way to achieve this or does it only work with XML files?!
>  
>
do:
<map:match pattern="atlasextract.xml">
  <map:generate ..../>
  <map:serialize type="xml"/>
</map:match>

then:
<map:aggregate element="root">
  <map:part src="cocoon:/atlasextract.xml"/>
  ...

You might want to put the 'atlasextract.xml' into a <map:pipeline 
internal-only="yes"> pipeline.

Regards, Upayavira



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


Mime
View raw message