DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28207>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28207 Internal Entity Declarations [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WORKSFORME ------- Additional Comments From [EMAIL PROTECTED] 2004-07-29 23:45 ------- [Copying reply by Mark Roth:] Hi Felix, Sorry, I did not get the entire context of the question initially. I think this may help: Your source document has to be well-formed XML, and in this case you desire your output document to be well-formed XML as well. I think you're looking for something like: ----- <!DOCTYPE jsp:root [ <!ELEMENT jsp:root (#PCDATA | html)*> <!ATTLIST jsp:root xmlns:jsp CDATA #REQUIRED version CDATA #REQUIRED> <!ELEMENT html (#PCDATA)> <!ENTITY nbsp "&nbsp;"> ]> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"> <![CDATA[ <!DOCTYPE html [ <!ELEMENT html (#PCDATA)> <!ENTITY nbsp " "> ]> ]]> <html> Sample text </html> </jsp:root> ----- (I just tried this and it works in Tomcat 5). Note that in the input doctype, nbsp is declared as "&nbsp;". This ensures that in the output is printed verbatim. The output document uses a different entity decl for nbsp ( ). If your intent is to generate an XHTML document, probably already declared in the XHTML DTD and you can probably use <jsp:output>, unless you really need an internal subset. Of course, once you start using an input DOCTYPE for your JSPX, it might be difficult to maintain. You probably should not use internal subsets but rather a DTD that all your JSPX pages share. Hope this helps! --- Mark Roth, Java Software JSP 2.0 Specification Lead Sun Microsystems, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]