I think the problem is caused by the form of the generation of the Java
code. I saw the same problem when you try to use the tags:
<esql:previous-results/> and <esql:more-results/> just before the
<esql:row-results>.
Also, just one tip: "Dont use for every query all the steps". Example:
<esql:connection>
<esql:pool>mp_pool</esql:pool>
<esql:execute-query>
my first query
</esql:execute-query>
<esql:execute-query>
my second query
</esql:execute-query>
</esql:connection>
Regards,
Antonio Gallardo
John R. Daily dijo:
> I have some xsp:attribute values that are being added to the
> wrong XML element.
>
> With much stripping, my flow looks like:
>
> <xsp:page>
> <my_root_tag>
> <xsp:attribute name="foo">bar</xsp:attribute>
>
> <esql:connection>
> <esql:row-results>
> <xsp:attribute name="name">
> <esql:get-string column="description"/>
> </xsp:attribute>
> </esql:row-results>
> </esql:connection>
>
>
> <esql:connection>
> <esql:row-results>
> <my_nested_tag>
> ...
> </esql:row-results>
> </esql:connection>
>
> </my_root_tag>
> </xsp:page>
>
> Unfortunately, the output looks like:
>
> <my_root_tag foo="bar">
> <my_nested_tag name="some_description" />
> <my_nested_tag />
> ...etc...
>
>
> So the name attribute is being assigned to the first nested tag
> _after_ the xsp:attribute invocation.
>
> Because I'm adding attributes to my root tag, I can't use
> <xsp:element> to declare it.
>
> This worked fine with AxKit, so either the XSP spec isn't nailed
> down, or there's a bug with Cocoon, or I'm just showing my
> ignorance again.
>
> Software:
> Cocoon 2.0.4
> Tomcat 4.1.18
> Java 1.4.1 (beta)
>
> --
> John R. Daily [EMAIL PROTECTED]
> Director of Technology Progeny Linux Systems
> Master of the ephemeral epiphany
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>