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 Fri, 22 Jun 2001 21:31:47 GMT
On Fri, 22 Jun 2001, John Morrison wrote:

> Thanks,
>
> > -----Original Message-----
> > From: giacomo [mailto:giacomo@apache.org]
> > Sent: Friday, 22 June 2001 7:56 pm
> > To: 'cocoon-dev@xml.apache.org'
> > Subject: Re: Agregating serverpages...?
> >
> >
> > 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>
>
> but if I do the above how can I stop it from being accessed outside of the
> sitemap?

Put all matchers for URI you don't want to be accessable from out side
world into a separate pipeline 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:pipeline internal-only="true">
   <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>
  </map:pipeline>

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