It doesn't seems that you are trying to generate dynamic "on-the-fly" images, but static ones...
If all you want are image links pointing to something the that browser can load, then (if you intend to run a professional setup) I would recommend you that the images are outside the Cocoon scope. That means, <img src="/images/uktop10.gif" /> is inserted into the produced HTML document, and that Apache webserver (preferably) serves the "/images" resource directly, by default, it would be $DOCUMENT_ROOT/images, but an Alias can change it to whereever (remember you need a <Directory> declaration if outside the DocumentRoot context). If you are not use Apache webserver, place the images in /tomcat/webapps/ROOT/images, and use the URL above, and it should work. No need to involve Cocoon in this. Niclas On Tuesday 11 March 2003 01:48, Richard Cunliffe wrote: > Hi, > > > > I have two questions: > > > > 1. I'm not sure if this cocoon or my inability to do > XSL, but I have my web page images in an images folder, under the root > directory soundpool. Everything was looking good until I checked the > site in netscape, when I found the images were not loading. I > consequently checked on other on other computers, and they were not > working there either. Do I need to included something in my sitemap to > tell cocoon where the images are. If this is not the case, could someone > please tell me how to get them to work. The rest of my XML is being > parsed correctly. Below is an example in my style sheet referencing an > image: > > > > <img src="C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif"/> - > This is what XML Spy produced in its XSLT designer, I have also tried > > > > <img src="images\uktop10.gif"/> - this also doesn't work > > > > > > > > 2. My next question is a DTD question > > > > I have SQL statements in my XML code to query a MySQL database, and I > now want to display the results, but how do I define this SQL query in > my DTD?? I have attached a XML file. > > > > > > Richard. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]