cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Geelen" <stefangee...@hotmail.com>
Subject Error: This page is not valid page of this markup langugage (?)
Date Sat, 14 Feb 2004 15:04:39 GMT
 Hi,

 I get following compile error:

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.xml.sax.SAXException: This page is not valid page of this markup
langugage. Root element is: :book, must be: http://apache.org/xsp:page

for following .xsp page

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java"
 xmlns:xsp="http://apache.org/xsp"
 xmlns:esql="http://apache.org/cocoon/SQL/v2"
 xmlns:xsp-session="http://apache.org/xsp/session/2.0"
 create-session="true">
<book>
  <p>DO nOTIHNG</p>

</book>
</xsp:page>

I really have no idea what is causing this.

Anyone a suggestion ?

Stefan

----- Original Message ----- 
From: "Stefan Geelen" <stefangeelen@hotmail.com>
To: <users@cocoon.apache.org>
Sent: Saturday, February 14, 2004 12:37 PM
Subject: Error: Language Exception


> Hi,
>
> I get following compile error:
>
>  org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> myaccount_details_xsp: ERROR 1
> (org\apache\cocoon\www\xmlmill\xsp\myaccount_details_xsp.java): ... ; } }
//
> start error (lines 257-257) "Syntax error on keyword "if"; "boolean",
> "void", "byte", "short", "int", "long", "char", "float", "double",
> "Identifier", "interface", "class" expected" if ( // end error
> (session.isNew()) ) { ... ERROR 2
> (org\apache\cocoon\www\xmlmill\xsp\myaccount_details_xsp.java): ...
> (session.isNew()) ) { // start error (lines 262-262) "xspAttr cannot be
> resolved" xspAttr.addAttribute( // end error "", "location", "location",
> "CDATA", ... ERROR 3
> (org\apache\cocoon\www\xmlmill\xsp\myaccount_details_xsp.java): ...
> this.contentHandler.startElement( "http://apache.org/xsp/response/2.0",
> "send-redirect", "xsp-response:send-redirect", // start error (lines
> 275-275) "xspAttr cannot be resolved" xspAttr // end error );
> xspAttr.clear(); ... ERROR 4
> (org\apache\cocoon\www\xmlmill\xsp\myaccount_details_xsp.java): ...
> "send-redirect", "xsp-response:send-redirect", xspAttr ); // start error
> (lines 277-277) "xspAttr cannot be resolved" xspAttr.clear(); // end error
> this.contentHandler.endElement( ... Line 257, column 0: Syntax error on
> keyword "if"; "boolean", "void", "byte", "short", "int", "long", "char",
> "float", "double", "Identifier", "interface", "class" expected Line 262,
> column 0: xspAttr cannot be resolved Line 275, column 0: xspAttr cannot be
> resolved Line 277, column 0: xspAttr cannot be resolved
>
> with following code:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
>    xmlns:esql="http://apache.org/cocoon/SQL/v2"
>    xmlns:xsp-session="http://apache.org/xsp/session/2.0"
>    xmlns:xsp-response="http://apache.org/xsp/response/2.0"
>
>    create-session="true">
>   <!-- <xsp-session:set-max-inactive-interval interval="30"/>  -->
>   <xsp:logic>
>     if (<xsp-session:is-new/>) {
>       <xsp-response:send-redirect location="myaccount.html"/>
>     }
>   </xsp:logic>
> ..
>
> The problem seems to be with the <xsp:logic> logic block.
> If I put the logic block in comment it runs fine.
>
> I can't spot immediately the error.
>
> Someone has an idea ?
>
> Regards,
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message