cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [c2]esql&xsl -newbie q.
Date Fri, 04 Jan 2002 01:18:34 GMT

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

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:
<title>Db Connection Test</title>
    SELECT * FROM flout.namn;   
    <para><esql:get-string column="namn"/></para>
the xsl-file, this is probably dead wrong:
<xsl:template match="page">
<title><xsl:value-of select="title"/></title>
<xsl:for-each select="para">
<p><xsl:value-of select="namn"/></p>

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"/>

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


Please check that your question has not already been answered in the
FAQ before posting. <>

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

View raw message