cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: <?xml-logicsheet ...?> and esql
Date Thu, 14 Dec 2000 06:15:52 GMT
On Thu, 14 Dec 2000, Matthew Cordes wrote:

> That didn't seem to work, but this is my second logicsheet so I most
> likely am in error.
>
> my logicsheet:
>
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
> xmlns:mine="http://mine.com/my-logicsheet"
> >
>
> <xsl:template match="mine:do-stuff">
>   <esql:execute-query>
>     <esql:query>
>       select name, description from some_table where some condition
>     </esql:query>
>
> 		<esql:results>
> 			<record>
> 				<name><esql:get-string column="name"/></name>
> 				<description><esql:get-string column="name"/></description>
> 			</record>
> 		</esql:results>
>
> 		<esql:error-results>
>
> 			<!-- BUG?: with the newest cvs version i get null pointer exceptions
> 				when i include the below -->
> 			<!--
> 				<message><esql:get-message/></message>
> 				<stack><esql:get-stacktrace/></stack>
> 			-->
> 		</esql:error-results>
>   </esql:execute-query>
> </xsl:template>
>
> <xsl:template match="@*|*|text()|processing-instruction()">
> <xsl:copy>
>   <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
> </xsl:copy>
> </xsl:template>
> </xsl:stylesheet>
>
>
> my page:
> ?xml version="1.0"?>
> <?cocoon-process type="xsp"?>
> <?xml-logicsheet href="logicsheet.xsl" type="text/xsl"?>
> <xsp:page language="java"
> 	xmlns:esql="http://apache.org/cocoon/SQL/v2"
> 	xmlns:mine="http://mine.com/my-logicsheet"
> 	xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> >
>
> <page>
> 	<mine:do-stuff/>
> </page>
> </xsp:page>

look carefully at the esql sample. you don't have an esql:connection
element, for instance.

- donald


Mime
View raw message