Worked perfectly. Thanks. My code was cut and paste was the IBM tutorial on XSP. They probably used <, instead of <, but that came across in the HTML as a <. At least that is my theory.
-Seth On Sat, Jul 27, 2002 at 09:37:06PM +0200, Litrik De Roy wrote: > The "less than" is being considered to be the beginning of an XML tag. > > Either put the whole statement in a CDATA section or use an XML entity > (<) as explained in > http://www.mail-archive.com/cocoon-users@xml.apache.org/msg10347.html > > Litrik De Roy > www.litrik.com > > > ----- Original Message ----- > From: "Seth M. Landsman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, July 27, 2002 9:00 PM > Subject: trying to get a simple XSP page working > > > > So I'm trying to get the following XSP page to work in cocoon. I'm > > pretty sure cocoon is properly configured, and the problem is in the > > syntax of the XSP page. However, I don't see how or where, so hopefully > > someone can lend a clue and help me figure this out. > > > > Thanks, > > Seth > > > > XSP page is : > > > > <?xml version="1.0"?> > > <?cocoon-process type="xsp"?> > > > > <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"> > > > > <page> > > <title>some list</title> > > > > <xsp:logic> > > for (int i=1; i<11; i++) { > > <element><xsp:expr>i</xsp:expr></element> > > } > > </xsp:logic> > > </page> > > > > </xsp:page> > > > > error message is : > > > > type fatal > > > > message Stopping after fatal error: The content of elements must consist > > of well-formed character data or markup. > > > > description org.apache.cocoon.ProcessingException: Stopping after fatal > > error: The content of elements must consist of well-formed character > > data or markup.: org.xml.sax.SAXException: Stopping after fatal error: > > The content of elements must consist of well-formed character data or > > markup. > > > > sender org.apache.cocoon.servlet.CocoonServlet > > > > source Cocoon servlet > > > > stack-trace > > > > org.apache.cocoon.ProcessingException: Stopping after fatal error: The > > content of elements must consist of well-formed character data or > > markup.: org.xml.sax.SAXException: Stopping after fatal error: The > > content of elements must consist of well-formed character data or > > markup. > > at > > <snip/> > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>