cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "I-Lin Kuo" <>
Subject newbie xsp question
Date Mon, 03 Feb 2003 17:00:45 GMT
In the sample xsp provided with cocoon, on the page


There's a section of code that looks like this:

       for (int i=0; i<3; i++) {]]><![CDATA[
           Item <xsp:expr>i</xsp:expr>
       } ]]><![CDATA[

I understand that the CDATA sections are needed to escape the "<" in the for 
loop declaration, but it seems to me that only one such is needed. To test 
this, I made up another page with the following:

	for (int j=0;j<3;j++) ]]>{
		<li>Item <xsp:expr>j</xsp:expr></li>

This worked, and confirmed my suspicions. So my question is, why were there 
so many CDATA sections in the original, and when am I supposed to use them?

Also, I'd appreciate it if someone could explain what xsp:content is 
supposed to do, or refer me to some place in the documentation where all the 
tags are listed (I couldn't find any).

Protect your PC - get VirusScan Online

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message