cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Cunliffe" <>
Subject RE: Image doesn't display
Date Tue, 11 Mar 2003 22:05:02 GMT
Ok I have had this trouble today as well.

Do you have your xml files under the cocoon folder or one of your own.
If so put the images into a folder like shown:

C:\Program Files\Apache Group\Apache2\htdocs\YOUR FOLDER\images

YOUR FOLDER = if you have your xml files in a folder called 'guitars'
under the cocoon folder then your folder would be guitars.

The htdocs folder is the folder that serves to the web from apache, it
might be different for you e.g. wwwROOT

You then reference your images in the xsl file like so:

<img src="/YOUR FOLDER/images/backgroundpda.jpg"/>

Your images will then display when the webpage is loaded

Hope this helps,


-----Original Message-----
From: Ines Robbers [] 
Sent: 11 March 2003 21:54
To: Cocoon Mailingliste
Subject: Image doesn't display


I have a problem displaying an image in a stylesheet:

I have read the stuff on "Serving
Static Files" but I can't get it to work.
It sais in the end there is another why serving images through apache.
How does that work?

For now I tried to generate, transform and serialize the image because
as is explain on wiki: "the Reader method won't work for a static HTML

What generator do I use to generate images?

Can anybody please help?

This is what I wrote in the sitemap:

<!-- images -->		
<map:match pattern="img">
   <map:generate src="img" type="imagedirectory"/>
   <map:transform src="img.xsl"/>
   <map:serialize type="html"/>
<map:match pattern="img/**">
   <map:read src="img/{1}"/>

Many thanks!


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

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

View raw message