You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by davide semprini <se...@hotmail.com> on 2000/11/23 17:55:37 UTC

ESQL METHOD GET STRING NESTED

Hi,
I have a problem,

I have file xml like:

<desr attrib=" "><esql:get-string column="xxxx"/></descr>

inside attrib I want to load a string from my table:

<desr attrib=" <esql:get-string column="yyyy"/> "><esql:get-string 
column="xxxx"/></descr>
but it was an error because cocoon don't want character < or > inside " "

when i wrote:

<description

profile=" &lt;!esql:get-string column=&quot;profile&quot;/&gt;  ">

<esql:get-string column="description"/>


</description>

cocoon response me:   what's the right syntax??????????

java.lang.Exception: XSP Java Compiler: Compilation failed for _esql2.java
125: ')' expected.
      "  "
                                  ^
1 error


	at java.lang.Throwable.fillInStackTrace(Native Method)
	at java.lang.Throwable.fillInStackTrace(Compiled Code)
	at java.lang.Throwable.(Compiled Code)
	at java.lang.Exception.(Compiled Code)
	at 
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(Compiled 
Code)
	at org.apache.cocoon.processor.xsp.XSPProcessor.process(Compiled Code)
	at org.apache.cocoon.Engine.handle(Compiled Code)
	at org.apache.cocoon.Cocoon.service(Compiled Code)
	at javax.servlet.http.HttpServlet.service(Compiled Code)
	at org.apache.jserv.JServConnection.processRequest(Compiled Code)
	at org.apache.jserv.JServConnection.run(Compiled Code)
	at java.lang.Thread.run(Compiled Code)




_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Re: ESQL METHOD GET STRING NESTED

Posted by Corey O'Donovan <od...@feersumendjinns.com>.
Try:

<description>
 <!-- the below should be kept on 1 line for best results !-->
 <xsp:attribute name="profile"><esql:get-string
column="description"/></xsp:attribute>
 <!-- the above should be kept on 1 line for best results !-->
</description>

-Corey

----- Original Message -----
From: davide semprini <se...@hotmail.com>
To: <co...@xml.apache.org>
Sent: Thursday, November 23, 2000 4:55 PM
Subject: ESQL METHOD GET STRING NESTED


> Hi,
> I have a problem,
>
> I have file xml like:
>
> <desr attrib=" "><esql:get-string column="xxxx"/></descr>
>
> inside attrib I want to load a string from my table:
>
> <desr attrib=" <esql:get-string column="yyyy"/> "><esql:get-string
> column="xxxx"/></descr>
> but it was an error because cocoon don't want character < or > inside " "
>
> when i wrote:
>
> <description
>
> profile=" &lt;!esql:get-string column=&quot;profile&quot;/&gt;  ">
>
> <esql:get-string column="description"/>
>
>
> </description>
>
> cocoon response me:   what's the right syntax??????????
>
> java.lang.Exception: XSP Java Compiler: Compilation failed for _esql2.java
> 125: ')' expected.
>       "  "
>                                   ^
> 1 error
>
>
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at
>
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(Compi
led
> Code)
> at org.apache.cocoon.processor.xsp.XSPProcessor.process(Compiled Code)
> at org.apache.cocoon.Engine.handle(Compiled Code)
> at org.apache.cocoon.Cocoon.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at org.apache.jserv.JServConnection.processRequest(Compiled Code)
> at org.apache.jserv.JServConnection.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
>
>
>
>
____________________________________________________________________________
_________
> Get more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org