You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2004/07/20 12:27:58 UTC
FallbackModule: Return context:// URI?
Hi Lenya developers,
at the moment, the fallback module returns a relative path:
{fallback:xslt/foo.xsl}
core -> xslt/foo.xsl
pub -> pubs/mypub/lenya/xslt/foo.xsl
This requires to use specific path expressions depending
on the sitemap location. For instance, in global-sitemap.xmap
you have to write
<map:transform src="lenya/{fallback:xslt/foo.xsl}"/>
but in lenya/admin.xmap you have to write
<map:transform src="{fallback:xslt/foo.xsl}"/>
A possible solution could be to return a context:// URL:
core -> context:///lenya/xslt/foo.xsl
pub -> context:///lenya/pubs/mypub/lenya/xslt/foo.xsl
I think this should be sufficient so that you can use
<map:transform src="{fallback:xslt/foo.xsl}"/>
in every sitemap.
WDYT?
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: FallbackModule: Return context:// URI?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Andreas Hartmann wrote:
> A possible solution could be to return a context:// URL:
>
> core -> context:///lenya/xslt/foo.xsl
> pub -> context:///lenya/pubs/mypub/lenya/xslt/foo.xsl
>
> I think this should be sufficient so that you can use
>
> <map:transform src="{fallback:xslt/foo.xsl}"/>
>
> in every sitemap.
cool.
+1
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org