Hi, I have a jspx like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE fo:root [ <!ENTITY nbsp " "> ]> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:jsp="http://java.sun.com/JSP/Page"> <test name="test" value="test"></test> </fo:root> it can be parsed by xerces2.6, but when I run it, server throw exception like this: org.apache.jasper.JasperException: /blank.jspx(5,96) Element type "fo:root" must be declared. at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler. java:83) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402 ) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126 ) at org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:23 4) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:224) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 52) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 91) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) Another question is about output format, the source xml code is: <test name="name" value="test"></test> but the output changes to: <test value="test" name="name"/> I want use jspx as template engine, but the output format is not as expected. as I understand, jsp just for generating dynamic content, why it acted like xml validator and xml formatter? I use tomcat 5.0.18 Regards, Eric --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]