RE: image and relative path issueok, I did as indicated : src="../../images/menu.gif" in my stylesheet, but the images does appear only when I right-click and do "show image". what's wrong ?
thx ----- Original Message ----- From: Naquin, Beth To: '[EMAIL PROTECTED]' Sent: Tuesday, July 16, 2002 7:47 PM Subject: RE: image and relative path issue try looking at this mail http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102434844115169&w=2 -----Original Message----- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>