cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariano Kamp <mk...@codamax.com>
Subject Re: Agregating serverpages...?
Date Sun, 24 Jun 2001 07:57:09 GMT
On Friday 22 June 2001 08:55 pm, Giacomo wrote:
> On Fri, 22 Jun 2001, Morrison, John wrote:
> > Could anybody please tell me if the following is possible/correct...?
> >
> >    <map:match pattern="myscript.sh">
> >     <map:aggregate element="page">
> >      <map:part src="catalog" element="public"/>
> >      <map:part src="parameters" element="parameters"/>
> >     </map:aggregate>
> >     <map:serialize/>
> >    </map:match>
> >
> >    <map:match pattern="parameters">
> >     <map:generate type="serverpages" src="docs/parameters.xml"/>
> >    </map:match>
> >
> >    <map:match patter="catalog">
> >     <map:generate src="docs/experiancatalog.xml"/>
> >    </map:match>
>
> Unfortunately the sitemap cannot know where the sitemap component
> selection process would end. It's not enought to close the match
> element. You need to specify a serializer to signal end-of-pipeline to
> the sitemap. So your example should work if you write it like this:
>
>     <map:match pattern="myscript.sh">
>      <map:aggregate element="page">
>       <map:part src="catalog" element="public"/>
>       <map:part src="parameters" element="parameters"/>
>      </map:aggregate>
>      <map:serialize/>
>     </map:match>
>
>     <map:match pattern="parameters">
>      <map:generate type="serverpages" src="docs/parameters.xml"/>
>      <map:serialize/>
>     </map:match>
>
>     <map:match patter="catalog">
>      <map:generate src="docs/experiancatalog.xml"/>
>      <map:serialize/>
>     </map:match>

  I am just curious about how to use cocoon. Doing it with the default 
serializer would mean to convert sax events to xml and in the aggregation it 
will be  transformed back to sax events?

 If this is the case, doesn't this add a performance penalty?

Mariano





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


Mime
View raw message