cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: Behaviour of mount element in sitemap
Date Thu, 13 Jul 2000 15:59:22 GMT
On Thu, Jul 13, 2000 at 01:31:19AM +0200, Stefano Mazzocchi wrote:
> Giacomo Pati wrote:
> > 
> > --- Stefano Mazzocchi <stefano@apache.org> wrote:
> > >
> > > Totally agreed. Just follow the Servlet 2.2 context mapping model.
> > 
> > Do you mean, that a SitemapProcessor should expose some kind of Resolver interface
to make the
> > sub-sitemap have resolved any filesystem resource needed to the base of the mounted
sitemap (some
> > kind of chroot behaviour)?
> 
> No, the sitemaps writers should have _no_ notion of where their sitemaps
> will end up being mapped.

Oh, I forgot this. Sitemap writers should not know about. But what 
about content writers, who wants to link documents together. Or 
having a link to the parent page or alike?

> The implementation should just enforce this in whatever way we (you, at
> this time) find appropriate.
>  
> > And what about links? Should a SitemapProcessor plug itself into the pipeline as
a transformer and
> > intercept links to change them according to the "context" it runs in? Puh, this
sound like
> > something I've removed some days ago which was called LinkTranslator, do you remember?
> 
> Hmmm, good point.
> 
> We should introduce the notion of "absolute" addresses.... hmmmm, what
> about
> 
>  1) <map:redirect-to uri="blah"/>
>  2) <map:redirect-to resource="blah"/>
>  3) <map:redirect-to location="blah"/>
> 
> where
> 
>  1) [uri] -> http://host/blah
>  2) [resource] -> local sitemap resource (should be inlined in the
> sitemap generation or called as a method call)
>  3) [location] -> redirected to the ./blah location of this very
> sitemap.
> 
> So, we keep the attribute "uri" for absolute resources and "location"
> for local resources.

This is ok for sitemap admins. But it doesn't help content writers.

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch


Mime
View raw message