It does not correlate with XML file you sent before...
It looks like this java file was generated from different XML, something like this:
<result>
<xsp:logic>
if(...){
<i18n:date/>
}else{
<xsp:expr>result</xsp:expr>
}
</xsp:logic>
</result>
With this XML I'm able to reproduce your problem (XML file you sent before was
compiling
with no problems).
And here is the solution:
<xsp:expr> can not be used this way when it immediately netsted in <xsp:logic>,
and this is done so to enable interoperability with other stylesheets. An example of
correct usage would be something like:
<result>
<xsp:logic>
String result = "";
if(result.equals("")){
<i18n:date/>
}else{
result = <xsp-request:get-header name="user-agent"/>;
}else{
result = <xsp:expr>result</xsp:expr>;
}
</xsp:logic>
<xsp:expr>result</xsp:expr>
</result>
Hope I described this clear enough,
Vadim
> -----Original Message-----
> From: Enke Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: strange Language Exception
>
>
> Vadim Gritsenko wrote:
> >
> > Send your test_error_xsp.java which is found under Cocoon's work directory.
> >
> > Vadim
> >
> > > -----Original Message-----
> > > From: Enke Michael [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 01, 2001 5:10 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: strange Language Exception
> > >
> > >
> > > This happened with Cocoon0730041508
> > >
> > > Regards,
> > > Michael
> > >
> > ...
>
> Here it comes.
> Greetings,
> Michael
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>