You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Pablo Bendersky <pb...@itineri.com> on 2001/05/31 14:40:12 UTC
Absolute path inside XSL file
Hello !
I have an XSL file I use as a common frame for lots of generated HTML, which
are located on different directories. That's why I want to use absolute
paths inside that XSL.
Suppose my structure is:
/webapp/cocoon/
Then inside I have a subsitemap:
/webapp/cocoon/test/sitemap.xmap
which uses the common frame
/webapp/cocoon/test/stylesheets/common/frame.xsl
In the sub sitemap I have some matchings for the images, something like
<map:match pattern="img/lang/**.jpg">
<map:act type="lang-select">
<map:read src="resources/img/{lang}/{../1}.jpg" mime-type="image/jpg"/>
</map:act>
</map:match>
to have languaje aware images, so, frame.xsl calls "img/lang/hello.jpg".
Ok, as I want to use absolute paths, the only way I found to is writing
/cocoon/test/img/lang/hello.jpg
Is there another way to do it ? Relative to the current sitemap would be
better, I think.
Thanks a lot !
Pablo Bendersky
pbendersky@itineri.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>