cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Strange error with dynamic XSL
Date Wed, 18 Oct 2000 18:55:13 GMT
Check the java generated in the repository dir (specified in

That will give u a clue...


-----Original Message-----
From: gasper  
Sent: Tuesday, October 17, 2000 2:53 PM
To: cocoon-users
Cc: gasper
Subject: FW: Strange error with dynamic XSL


I have been following the discusion for the dynamic XSL generation and
trying to do it. But I have encountered an error with the page

My XSP code is starting like this:

    String s=request.getParameter("action");
    if ((s==null) || (s.equals("insert"))) {
      <xsp:pi target="xml-stylesheet">href="xsl/html/product.xsl"
      <xsp:pi target="xml-stylesheet">href="xsl/wml/product.xsl"
type="text/xsl" media="wap"</xsp:pi>     
    } else if (s.equals("edit")) {
      <xsp:pi target="xml-stylesheet">href="xsl/html/productu.xsl"
      <xsp:pi target="xml-stylesheet">href="xsl/wml/productu.xsl"
type="text/xsl" media="wap"</xsp:pi>     
    } else if (s.equals("add")) {
      <xsp:pi target="xml-stylesheet">href="xsl/html/producti.xsl"
      <xsp:pi target="xml-stylesheet">href="xsl/wml/producti.xsl"
type="text/xsl" media="wap"</xsp:pi>

The error I get is:

java.lang.Exception: XSP Java Compiler: Compilation failed for

36: Type expected.      

if ((s==null) || (s.equals("insert"))) {      

^ 1 error

Can someone please tell me what am I doing wrong?
Thanks for your help.


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

Visit our website at

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

View raw message