cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cenk Uysal <cenk_uy...@yahoo.com>
Subject JspGenerator Problem
Date Sun, 23 Jun 2002 17:36:48 GMT
I try to use JspGenerator with following sitemap entry:

   <map:pipeline>

     
   <map:match pattern="cenk/*.*">
    <map:generate src="jspxml.jsp" type="jsp"/>
    <map:transform src="jspxml.xsl"/>
    <map:serialize type="html"/>
   </map:match>
   
    </map:pipeline>

Jsp file is just like this:

<%@ page contentType="text/xml" %>
<?xml version="1.0"?>
<page>
  <title>
<%    
out.println("With help from JSP");
%>
  </title>
</page>

And my XSL is as follows:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>

<xsl:template match="/">
<html>
<body>
    <xsl:for-each select="page">
    
    <xsl:value-of select="title"/>
     
    
    </xsl:for-each>
    
  </body>
  </html>
</xsl:template>



</xsl:stylesheet>

When I try to run this application Cocoon gives "SAXException
JspGenerator.generate()" error?

What is wrong? Cocoon's own JSP examples run without problem. I use
Cocoon 2.0.2

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message