tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28207] New: - Internal Entity Declarations
Date Mon, 05 Apr 2004 13:57:38 GMT
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

           Summary: Internal Entity Declarations
           Product: Tomcat 5
           Version: 5.0.21
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: felix.lipov@morganstanley.com


I'm having problems when I try to declare an XML ENTITY, like &nbsp in an XML 
formatted JSP page. Tomcat 4 never gave problems, but Tomcat 5 always gives 
errors off of the following example:

<?xml version="1.0" ?>
<!DOCTYPE jsp:root [
  <!ENTITY nbsp "&#160;">
  <!ENTITY le "&#8804;">
  <!ENTITY ge "&#8805;">
]>

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
  <html>
  <body>
  &nbsp;
  </body>
  </html>
</jsp:root>


Saying:
org.apache.jasper.JasperException: /test.jsp(9,521) Element type "jsp:root" 
must be declared.

I know this is in respect to JSP.6.2.4 JSP Document Validation

> A JSP Document with a DOCTYPE declaration must be validated by the 
> container in the translation phase. Validation errors must be handled 
> the same way as any other translation phase errors, as described in 
> Section JSP.1.4.1.
>
>   JSP 2.0 requires only DTD validation for JSP Documents; containers 
> should not perform validation based on other types of schemas, such as 
> XML schema.

Nonetheless, what am I to do if I want to use XML JSP syntax and be able to use 
something as simple as &nbsp?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message