You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brent L Johnson <br...@bjohnson.net> on 2001/08/21 01:15:41 UTC
esql, get-xml and xsp:logic
I've been using <esql:get-xml column="COLNAME" root="fragment"/> and it's
been working perfectly. But, I've found a problem when trying to set a
String inside an <xsp:logic> tag to that. Make any sense? Here's the code
that works...
<esql:row-results>
TEST: <esql:get-xml column="mycol" root="fragment"/>
</esql:row-results>
But, I want to set a string to that value.. e.g.
<xsp:logic>
String myval = <esql:get-xml column="mycol" root="fragment"/>;
</xsp:logic>
Doing this I get the following error:
Incompatible type for =. Can't convert org.w3c.dom.Element to
java.lang.String.
Then I tried this (which ALMOST works):
<xsp:logic>
String myval = "" + <esql:get-xml column="mycol" root="fragment"/>;
</xsp:logic>
Unfortunately - this only gives me the string "[fragment: null]". Does this
have something to do with the order that the XSP and XSL is processed???
Thanks,
- Brent
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>