cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spinetti" <m.spine...@pisa.iol.it>
Subject R: LOGIC IN ESQL
Date Tue, 14 Nov 2000 10:58:00 GMT
The mistake I obtain is exactly that: cocoon prints in the Tag Value the If
istruction. How can I to specify that I must read a int or a String at
second of a certain condition?
Marco
m.spinetti@pisa.iol.it

----- Original Message -----
From: Henning von Bargen <H.vonBargen@Triestram-Partner.de>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, November 14, 2000 11:48 AM
Subject: AW: LOGIC IN ESQL


I don't know if this is causing the error, but shouldn't it read
   if( i==2 || i==3 || i==4 || i==11 )
?
Henning

> -----Urspr√ľngliche Nachricht-----
> Von: Marco Spinetti [SMTP:m.spinetti@pisa.iol.it]
> Gesendet am: Dienstag, 14. November 2000 11:39
> An: cocoon-users@xml.apache.org
> Betreff: LOGIC IN ESQL
>
> Hi all,
> I have read that I can insert my logic inside the Tag Esql. I have tried
to do that (I must do some elaborations on the results) but I obtain some
mistakes as if the logic was not elaborated.
>  In my file I write:
>
> <esql:results>
>     <header>Example</header>
>     <esql:row-results>
>     <xsp:logic>
>     for(int i=1; i&lt;=12; i++) {
>      <ResultElement>
>      <Name><xsp:expr>nomi[i-1]</xsp:expr></Name>
>      <Value>
>      if( i==2 | i==3 |i==4 | i==11 ) {
>       <esql:get-int column="i"/>
>      }
>      else

>       <esql:get-string column="i"/>
>      }
>      </Value>
>      </ResultElement>
>     }
>     </xsp:logic>
>     </esql:row-results>
>    </esql:results>
>
> Where is the error?
> Can you help me?
> Thanks many
> Marco
> m.spinetti@pisa.iol.it <mailto:m.spinetti@pisa.iol.it>
>

---------------------------------------------------------------------
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