I realy hope someone can help (error and code below). I'm using the latest SAX (sax2r3 downloaded from SF today). Editor is Eclipse 3. Tomcat 5 on Apache via modjk2. I get the following error, doesnt' matter what I try: ---------------------------------------------------------------------- javax.servlet.ServletException: Content is not allowed in prolog. org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:492) org.apache.jsp.results.basic_jsp._jspService(basic_jsp.java:85) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:320) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav a:1069) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr ocessor.java:455) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 279) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:743) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) JSP: ----------------------------------------------------- <%@ page language="java"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/x.tld" prefix="x" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <html:html locale="true"> <HEAD> <TITLE></TITLE> <html:base /> </HEAD> <BODY onmousemove="resetTimeout()"> <c:import url="/results/xsl/test.xsl" var="xslt" /> <c:import url="/results/xsl/test.xml" var="xml" /> <x:parse xml="${xml}" var="doc"/> </BODY> </html:html> XSL ------------------------------------ <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="students"> <html> <head> </head> <body> <table border="1"> <tr> <td>Do nothing now </td> </tr> </table> </body> </html> </xsl:template> </xsl:stylesheet> XML ------------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <students> <student id="1"> <name> <first>John</first> <last>Smith</last> </name> </student> </students>
[oot?] x:parse & x:transform gives Content not allowed in prolog err.
Johan Wasserman - BCX - Infrastructure Services Sat, 10 Jul 2004 11:32:18 -0700