I don't know why the simple.xsp was done the way it was but I believe
you should also be able to write it this way:
xsp:logic
for (int i=0; i lt; 3; i++) {
liItem xsp:expri/xsp:expr/li
}
/xsp:logic
I think wrapping it in CDATA sections is just to make it possible to use
the in the for
In the sample xsp provided with cocoon, on the page
docs/samples/xsp/simple.xsp
There's a section of code that looks like this:
xsp:logic
![CDATA[
for (int i=0; i3; i++) {]]![CDATA[
]]
li
Item xsp:expri/xsp:expr
/li
![CDATA[
}
, I know I am. I dont understand a thing at all Any
input apriciated.
Best regards
Søren
-Oprindelig meddelelse-
Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 6. november 2001 08:24
Til: [EMAIL PROTECTED]
Emne: Fwd: Re: Newbie XSP question - why dosn't this work?
Søren
: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 6. november 2001 08:24
Til: [EMAIL PROTECTED]
Emne: Fwd: Re: Newbie XSP question - why dosn't this work?
Søren,
OK. Problem solved.
Frank was right. util:include-expr is the way to go. It will parse the
text that you pass
to something quite useless.
I have attached my original post! Please help me :)
-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sendt: 12. oktober 2001 04:41
Til: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Emne: Re: SV: Newbie XSP question - why dosn't this work?
Hi Søren
! Please help me :)
-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sendt: 12. oktober 2001 04:41
Til: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Emne: Re: SV: Newbie XSP question - why dosn't this work?
Hi Søren,
On Fri, 12 Oct 2001, Søren Neigaard wrote