cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: cocoon:/ and content aggregation
Date Tue, 30 Oct 2001 07:50:57 GMT
cocoon:// means root sitemap. 
We agreed several weeks (months?) ago, that it is
only usable to have "current sitemap" (=cocoon:/)
and "root sitemap" (=cocoon://).

Carsten

> -----Original Message-----
> From: Torsten Curdt [mailto:tcurdt@dff.st]
> Sent: Monday, October 29, 2001 5:34 PM
> To: cocoon-dev@xml.apache.org
> Subject: RE: cocoon:/ and content aggregation
> 
> 
> Found the cocoon:// way...
> 
> Does cocoon:// mean "parent sitemap" or "root sitemap"?
> 
> But still the questions remain...
> --
> Torsten
> 
> > -----Original Message-----
> > From: Torsten Curdt [mailto:tcurdt@dff.st]
> > Sent: Monday, October 29, 2001 4:59 PM
> > To: Cocoon-Dev
> > Subject: cocoon:/ and content aggregation
> > 
> > 
> > AFAIK the cocoon: protocol has a scope of the current sitemap.
> > But I need to aggregate a resource from the parent sitemap.
> > 
> > Since it is also at the servlet context I tried:
> > 
> >         ...
> >         <map:aggregate element="page">
> >          <map:part src="context:/inRootSitemap.xml"/>
> >          <map:part src="cocoon:/inThisSitemapUri1.xsp"/>
> >          <map:part src="cocoon:/inThisSitemapUri2.xsp"/>
> >         </map:aggregate>
> >         ...
> > 
> > This did not work. Then I tried:
> > 
> >         ...
> >         <map:aggregate element="page">
> >          <map:part src="../inRootSitemap.xml"/>
> >          <map:part src="cocoon:/inThisSitemapUri1.xsp"/>
> >          <map:part src="cocoon:/inThisSitemapUri2.xsp"/>
> >         </map:aggregate>
> >         ...
> > 
> > This seems to work.
> > Then I figured out I could create a mapping in the
> > current sitemap with a generator grabbing the XML
> > file via the context: protocol. So it would be accessible
> > in the subsitemap:
> >         ...
> >         <map:aggregate element="page">
> >          <map:part src="cocoon:/inRootSitemap.xml"/>
> >          <map:part src="cocoon:/inThisSitemapUri1.xsp"/>
> >         ...
> > 
> >         <map:match pattern="inRootSitemap.xml">
> >          <map:generate src="context:/inRootSitemap.xml"/>
> >           ...
> > 
> > Now this leads to some questions:
> > 1. Shouldn't the context: "protocol" also work at the
> >    src attribute of map:part?
> > 2. Was is the expense of not using the cocoon: protocol
> >    at map:part?
> > 
> > Comments?
> > --
> > Torsten
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

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


Mime
View raw message