Thorsten,
Ok, I got some results to come out, but as soon as add more to the XSL style sheet nothing appears from the database.
Is it possible for you to have a look at my style sheet, and see if there are any obvious mistakes?
Many Thanks,
Richard.
-----Original
Message-----
Hello Richard,
ok, i am still a whee bit confused but I try to answer.
You don't need to declare it! If so the CDATA would be the best!
You are using <sql:...> that tells me that you need a <map:transform type="sql"/> in your sitemap!
Like that: <map:match
pattern="verkauf-cp">
is that right? ...and is it working?
King regards Thorsten
|
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<xsl:template match="/"> <html> <head/> <body> <img src="/soundpool/images/backgroundpda.jpg"/> <title>soundpool</title> <xsl:for-each select="/"> <table border="0" width="99%"> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><tbody></xsl:text> </xsl:if> <tr> <td align="right"> <xsl:for-each select="pda"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt"> <xsl:for-each select="title"> <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> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> </table> <table border="0" width="99%"> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><tbody></xsl:text> </xsl:if> <tr> <td align="center" width="33%"> <a href="soundpool.html"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt">home</span> </a> </td> <td align="center" width="33%"> <a href="database.html"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt">database</span> </a> </td> <td align="center" width="33%"> <span style="color:#2B4E71; font-family:Verdana; font-size:8pt">contact us</span> </td> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> </table> <!-- MySQL Query --> <!-- <table> <tr> <td align="right"> <xsl:for-each select="."/> </td> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> </table> --> <table> <tr> <th> <xsl:for-each select="query"> <xsl:for-each select="execute-query"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> </th> </tr> </table> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]