tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morten Liebach...@mongers.org>
Subject Re: valid XHTML 1.1, Tomcat, text/xml, and @!&* IE
Date Sat, 18 Sep 2004 07:27:59 GMT
On 2004-09-17 23:27:01 -0700, Mark Eggers wrote:
> Yes, but the actual XSL is just a copy statement:
> 
> <stylesheet version="1.0"
>      xmlns="http://www.w3.org/1999/XSL/Transform">
>     <template match="/">
>         <copy-of select="."/>
>     </template>
> </stylesheet>
> 
> This should mean that no actual transformation gets done.
> 
> However, also from the FAQ:
> 
> Why is it allowed to send XHTML 1.0 documents as text/html?

[snip]

> A third hack might be to use the:
> 
>   <!--[if IE]>
> 
>   <![endif]-->
> 
> hack in your document.  This means that only Internet Exploder will see
> what's there.

The nicest solution is to follow the tips in this article:

    http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html

Basically , if the HTTP_ACCEPT variable contains the string
"application/xhtml+xml" set MIME-Type to that, otherwise set it to
"text/html".

And no, I have no idea how you do that in Java/JSP, I'm too much of a
newbie yet, but eventually I'll have to do something like that myself.
 
> Sigh - asking Microsoft to play by the rules is just not a possible
> thing.

It is, it just won't help.

Have a nice day
                                 Morten

-- 
http://m.mongers.org/ -- http://gallery.zentience.org/
__END__

---------------------------------------------------------------------
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