cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: sub sitemap context dir
Date Tue, 03 Jul 2001 08:20:58 GMT
> > I wonder if there is a way of having a sub sitemap
> > that does not change the context dir.
> > I need to access files in the parent dir of the
> > sub sitemap's dir.
> >
> > Under linux filesystem links could solve the
> > problem. (Although it is not a very nice sollution)
> >
> > My first guess was not to change the context dir
> > by passing an empty src attribute to the mount
> > attribute:
> >
> >   <map:match pattern="sub/**">
> >     <map:mount uri-prefix="sub" src="" check-reload="yes"/>
> >   </map:match>
> >
> > But how is the sitemap.xmap found then?
> >
> > So if this is not possible right now... What about
> > an explicit context dir parameter for the map:mount?
> >
> >   <map:match pattern="sub/**">
> >     <map:mount uri-prefix="sub" src="sub/sitemap.xmap" context="sub/" check-reload="yes"/>
> >   </map:match>
> >
> > So I could do
> >
> >   <map:match pattern="sub/**">
> >     <map:mount uri-prefix="sub" src="sub/sitemap.xmap" context="" check-reload="yes"/>
> >   </map:match>
> 
> I'm not 100% sure but could you try to use this:
> 
>   <map:match pattern="sub/**">
>     <map:mount uri-prefix="sub" src="/mysite.xmap" check-reload="yes"/>
>   </map:match>

This one works! Thanks!
An additional context parameter would be nice though.

If anyone gives positive feedback I'm willing to add that.
--
Torsten

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


Mime
View raw message