Hello,

I'm having some problems with an esql-query, or rather, showing the
query since the error message says the error accurs in the transform
handler. 

I've tried to look around a bit how to do the xsl file for an esql
query, but with no luck.So if someone could help me out how to do and
show an esql query I would me much grateful.

This is what I've done so far:

the xsp-file, a simple query who fetches a name from the db:
*********************************************'
<page> 
<title>Db Connection Test</title>
<content>
<esql:connection>
<esql:pool>test_mysql_pool</esql:pool>
<esql:execute-query>
<esql:query>
    SELECT * FROM flout.namn;   
</esql:query>
<esql:results>
 <esql:row-results>
    <para><esql:get-string column="namn"/></para>
 </esql:row-results>
</esql:results>
</esql:execute-query>
</esql:connection>
</content>
</page>
</xsp:page>
*********************************************
the xsl-file, this is probably dead wrong:
*********************************************
<xsl:template match="page">
<html>
<head>
<title><xsl:value-of select="title"/></title>
</head>
<body>
<xsl:for-each select="para">
<p><xsl:value-of select="namn"/></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
*********************************************

And this i added to the sitemap:
*********************************************
<map:match pattern="ctwig/test.xsp">
<map:generate type="serverpages" src="ctwig/test.xsp"/>
<map:transform type="xslt" src="ctwig/test.xsl"/>
<map:serialize/>
</map:match>
*********************************************

Hope someone can help out, been stuck with this basic problem a bit to long.


Cheers, 
Marcus. 



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to