cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Post" <>
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"/>

a request for index.* then a xsl stylesheet using : <img
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
image path by right-click on the (broken) picture :
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 ?



Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message