cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Post" <bab...@ifrance.com>
Subject image and relative path issue
Date Tue, 16 Jul 2002 17:41:40 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message