Localize the problem first. Does it work without <map:transform src="stylesheets/page/simple-page2html.xsl"/>
? Vadim > -----Original Message----- > From: Bucholdt, Christian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 30, 2002 6:52 AM > To: '[EMAIL PROTECTED]' > Subject: JSP-Generator-problem > > Hallo, > > I have a problem with the JSP-Generator. > The small "hello"-JSP-example works fine. > If i install a own example it's doesn't work. > The Error is: > org.apache.cocoon.ProcessingException: SAXException JspGenerator.generate(): > org.xml.sax.SAXParseException:The root element is required in a well-formed > document. > > Here is my Code: > > The JSP-Code: > <%@ page language='java' session='false'%> > > <%! > String uri_include, form_action, form_method; > ServletContext context; > > public void jspInit() > { > context = getServletConfig().getServletContext(); > uri_include = "menue_include"; > form_action = "form_action"; > form_method = "form_method"; > } > %> > > <page> > <form action="<%=context.getInitParameter(form_action)%>" > method="<%=context.getInitParameter(form_method)%>" /> > > <jsp:include page="<%=context.getInitParameter(uri_include)%>" > flush="true" /> > </page> > > The include JSP: > <content> > <para>Test1</para> > </content> > > The Stylesheet: > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:template match="/"> > <html> > <head><title>JSP-Generator-Test</title></head> > <body> > <xsl:apply-templates select="page"/> > <!--<xsl:apply-templates select="form" />--> > </body> > </html> > </xsl:template> > <xsl:template match="page"> > <xsl:apply-templates select="content"/> > </xsl:template> > <xsl:template match="content"> > <xsl:value-of select="para"/> > </xsl:template> > </xsl:stylesheet> > > The Sitemap-Entries: > <map:match pattern="jsp/*"> > <map:generate type="jsp" src="bancotec/floxco/src/jsp/{1}.jsp"/> > <map:transform src="stylesheets/page/simple-page2html.xsl"/> > <map:serialize type="html"/> > </map:match> > > The Code is in TOMCAT_HOME/webapps/cocoon/bancotec/floxco/src/View/menue.jsp > > Can anybody helps me? > > by > christian bucholdt > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]>