version: tomcat 5.0.9 on SuSE Linux 8.2 with JDK 1.4.2 Hi,
when processing JSP documents (.jspx) Jasper2 drops XML comments and Processing Instructions, i.e. neither XML comments nor PIs occur in the generated servlet and are thus not submitted to the client. This occurs only with JSP documents (see test.jspx). In jsp pages (see test.jsp) XML comments and PIs are submitted correctly. When including jsp segments into jsp documents (either statically via jsp:directive.include or dynamically via jsp:include), XML comments and PIs are submitted correctly as well. test.jspx: ####################################################################### <?xml version="1.0" encoding="UTF-8"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"> <jsp:output omit-xml-declaration="no"/> <jsp:directive.page language="java" contentType="text/html"/> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>test whether XML PIs and comments are submitted correctly</title> </head> <body> <!-- XML comment from test.jspx has to be submitted --> <?myPI comment="PI from test.jspx has to be submitted"?> <p>paragraph from test.jspx</p> </body> </html> </jsp:root> ############################################################################# test.jsp ############################################################################# <%@ page language="java" contentType="text/html"%> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>test whether XML PIs and comments are submitted correctly</title> </head> <body> <!-- XML comment from test.jsp has to be submitted --> <?myPI comment="PI from test.jsp has to be submitted"?> <p>paragraph from test.jsp</p> </body> </html> ############################################################################# Best regards, Jan -- Jan Harmsen Software Engineer R&D Tamino Technology Enablement Software AG Uhlandstrasse 12 D - 64297 Darmstadt phone: +49-6151-92-1592 fax: +49-6151-92-1609 Tamino XML Server - Number One In XML Management --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]