tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Tedone" <mted...@jemos.org>
Subject Re: JSP Document
Date Sat, 06 Sep 2003 17:30:56 GMT
Actually I think it is, at least according to the HTML 4.01 Transitional.
These are character entities and must be entered with the 'escape'
character. These can assume a number or a character after the escape
character. The only character which in some browsers is not rendered
properly is the TM (trade mark) symbol, which doesn't have an 'escape'
character representation, but only a numeric one (&153;). In this scape the
form:

<sup><small>TM</small></sup>

is used. I can confirm also that the &amp; is XHTML 1.0 Transitional valid.

Hope this will help,

Marco

----- Original Message ----- 
From: "Eugene Lee" <list-tomcat-user@fsck.net>
To: <tomcat-user@jakarta.apache.org>
Sent: Saturday, September 06, 2003 6:23 PM
Subject: Re: JSP Document


> On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote:
> :
> : Tomcat 4.1.27 on Win32 given
> :
> : <?xml version="1.0"?>
> : <jsp:root xmlns=http://java.sun.com/JSP/Page version="1.2">
> :     <h1>Cat &amp; Dog</h1>
> : </jsp:root>
> :
> : Generates
> :
> : <h1>Cat & Dog</h1>
> :
> : Can anybody confirm that this is correct behaviour?
>
> Why did the "&amp;" entity get changed to a plain "&" character?  That's
> not kosher with HTML-4.01 specs.
>
>
> -- 
> Eugene Lee
> http://www.coxar.pwp.blueyonder.co.uk/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>




Mime
View raw message