cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject RE: Agregating serverpages...?
Date Sun, 24 Jun 2001 17:51:14 GMT
On Sun, 24 Jun 2001, John Morrison wrote:

>
>
> > -----Original Message-----
> > From: Mariano Kamp [mailto:mkamp@codamax.com]
> > Sent: Sunday, 24 June 2001 8:57 am
> > To: cocoon-dev@xml.apache.org
> > Subject: Re: Agregating serverpages...?
> >
> >
> > 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?
>
> In short - I don't know cocoon well enough to comment.  I should point out
> though that the default serializer for the demo webapp is html, the default
> serializer for the above code is xml.

No, the ContentAggregator uses the EventPipelines directly. There is no
serializing/deserializing.

Giacomo


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


Mime
View raw message