cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent L Johnson" <br...@bjohnson.net>
Subject esql, get-xml and xsp:logic
Date Mon, 20 Aug 2001 23:15:41 GMT
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message