Chris, I have set up a reader for jpeg and gif, and the backdrop is loading from remote computers. The downside is that smaller images are still not loading. I have attached my style sheet and sitemap, to aid any suggestions.
Thanks, Richard. -----Original Message----- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 18:04 To: [EMAIL PROTECTED] Subject: Re: 2 (should be) easy questions 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 > to do it that way figure out how to browse to the image on your filesystem using the file:// scheme. should be something like file://C:\tomcat\webapps . . . Then use that url. > <img src="images\uktop10.gif"/> - this also doesn't work > to do it that way you need to define a reader for the gifs in your sitemap. see http://xml.apache.org/cocoon/userdocs/readers/resource-reader.html > 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. > I would dispense with the dtd if you're just trying to get things working. Charles --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head/> <body background="/soundpool/images/background.gif"> <xsl:for-each select="document"> <br/> <br/> <br/> <br/> <table border="0" width="760"> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><tbody></xsl:text> </xsl:if> <tr> <td align="right" colspan="2"> <xsl:for-each select="pc"> <xsl:for-each select="title"> <span style="color:#315273; font-family:Verdana"> <span style="color:#315273; font-family:Verdana; font-size:10pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </xsl:for-each> <br/> </td> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> </table> <table align="left" border="0" cellpadding="0" width="70%"> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><tbody></xsl:text> </xsl:if> <tr> <td width="109"> <br/> <span style="color:#2B4E71; font-family:Verdana; font-size:xx-small">home</span> <br/> <br/> <a href="aboutus.html"> <span style="color:#2B4E71; font-family:Verdana; font-size:xx-small">about soundpool</span> </a> <br/> <br/> <a href="database.html"> <span style="color:#2B4E71; font-family:Verdana; font-size:xx-small">database</span> </a> <br/> <br/> <a href="contactus.html"> <span style="color:#2B4E71; font-family:Verdana; font-size:xx-small">contact us</span> </a> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </td> <td align="center"> <table border="0" width="100%"> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><tbody></xsl:text> </xsl:if> <tr> <td align="left" width="296"> <img img="/soundpool/images/musicnews.gif"/> <br/> <xsl:for-each select="news"> <span style="color:#2B4E71; font-family:Verdana; font-size:small; font-weight:bold"> <xsl:for-each select="headline"> <span style="color:#2B4E71; font-family:Verdana; font-size:small; font-weight:bold"> <span style="color:#447F9D; font-family:Verdana; font-size:small; font-weight:bold"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="news"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="paragraph1"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="news"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="paragraph2"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="news"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="paragraph4"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> </td> <td align="left" width="307"> <br/> <img src="/soundpool/images/uktop10.gif"/> <span style="color:#2B4E71; font-family:Verdana; font-size:x-small"></span> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="one"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="two"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="three"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="four"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="five"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="six"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="seven"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="eight"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="nine"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> <xsl:for-each select="chart"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="ten"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:apply-templates/> </span> </span> </xsl:for-each> </span> </xsl:for-each> <br/> </td> </tr> <tr> <td width="296"> <img src="/soundpool/images/bbcradio.gif"/> </td> <td align="left" width="307"> <br/> <img src="/soundpool/images/albumcovers.gif"/> </td> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> </table> <br/> </td> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> </table> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
sitemap.xmap
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]