You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Barbara Post <ba...@ifrance.com> on 2002/07/16 19:41:40 UTC
image and relative path issue
I have a problem with images / css.
I use a pipeline for them but it doesn't seem to work.
images are in <webapp-root>/images.
pipeline for .gif :
<map:match pattern="**/images/*.gif">
<map:read mime-type="image/gif" src="/images/{2}.gif"/>
</map:match>
a request for index.* then a xsl stylesheet using : <img
src="images/menu.gif"/>
creates an image path ok : <webapp-root>/images/menu.gif (in the html output
: src="images/menu.gif")
but the picture does not show up, however when I right-click it and choose
"show image" the picture comes to view.
second case : a request for first/second/*. xsl stylesheet : <img
src="images/menu.gif"/>
image path by right-click on the (broken) picture :
<webapp-root>/a/b/images/menu.gif
in the html output : src="images/menu.gif".
so how can I tell my pipeline that it has to look for pictures in the
webapp's root/images folder, whatever the depth of the request ?
thanks,
Babs
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>