cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Araya <elr...@valinor.sjsu.edu>
Subject Re: Thrown out in <xsp:logic>
Date Sat, 02 Dec 2000 02:48:54 GMT
Try escaping the < in the <=. that is getting interpreted as an opening
tag inside another and that's not well-formed or valid HTML

Carlos

On Sat, 2 Dec
2000, Christof Schneider wrote:

|Date: Sat, 2 Dec 2000 02:46:57 +0100
|From: Christof Schneider <Christof_Schneider@gmx.de>
|Reply-To: cocoon-users@xml.apache.org, Christof_Schneider@CompuServe.Com
|To: Cocoon User List <cocoon-users@xml.apache.org>
|Subject: Thrown out in <xsp:logic>
|
|Hi folks,
|
|what's my problem?
|
|Here is the description:
|
|I have the following xsp page
|
|....
|
|<xsp:page
|  language="java"
|  xmlns:esql="http://apache.org/cocoon/SQL/v2"
|  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
|  xmlns:request="http://www.apache.org/1999/XSP/Request"
|  xmlns:response="http://www.apache.org/1999/XSP/Response"
|>
|
|<xsp:logic>
|    String login ;
|    String error ;
|</xsp:logic>
|
|<page>
|
|<xsp:logic>
|    login = request.getParameter("Kennung");
|    if (login.length() <= 5)
|    {
|        error = String("loginToShort") ;
|    }
|
|. . .
|
|
|when I leave out the if clause everything went well,
|but with if block inside the following error occurs:
|
|org.xml.sax.SAXParseException: The content of elements must consist of
|well-formed character data or markup.
|	at
|org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
|	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
|	at
|org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
|ntScanner.java:625)
|	at
|org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanne
|r.java:679)
|	at
|org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
|LDocumentScanner.java:1245)
|	at
|org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
|java:380)
|	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
|	at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:84)
|	at org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
|	at
|org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
|a:78)
|	at org.apache.cocoon.Engine.handle(Engine.java:340)
|	at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
|	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
|	at
|org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
|	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
|	at
|org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
|onnectionHandler.java:160)
|	at
|org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
|)
|	at java.lang.Thread.run(Thread.java:484)
|
|
|What am I doing wrong ?????? Is there a solution for my problem, so far I
|dont't know :-)
|
|You have first to know the problem, but I am not aware of the problem,
|besides there is one.
|
|TIA,
|
|- Chris
|
|
|---------------------------------------------------------------------
|To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
|For additional commands, e-mail: cocoon-users-help@xml.apache.org
|

--
 p |Carlos E. Araya
 - |WebCT Project Coordinator - New Media Specialist
 G |
email	: araya@sjsu.edu (prefered)		| Phone (408) 924 2859
Web	: http://valinor.sjsu.edu/~elrond/	| fax 	(408) 924 2439
	  http://www.silverwolf-net.net (under construction)

finger elrond@valinor.sjsu.edu for PGP key
-- 
LIFE: You can't control the length, but you can control the depth and
width. -- From Randal Schwartz picture archive

``Paradoxically, a refusal to `put a monetary value on life' means that
life is often undervalued.'' -- Artificial Intelligence: A Modern Approach



Mime
View raw message