cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gasper <gas...@gorenc.com>
Subject Strange error with dynamic XSL
Date Tue, 17 Oct 2000 18:52:38 GMT
Hello

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

My XSP code is starting like this:

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

The error I get is:

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

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.

Gasper

Mime
View raw message