You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by g4 <ja...@root10.net> on 2003/08/27 17:05:49 UTC

XHTML 1.1

Hi list,

I thought I had this issue solved,  alas no. OK I have this in  
sitemap.xmap:

     <map:serializer name="html" mime-type="text/xml"  
src="org.apache.cocoon.serialization.XMLSerializer">
         <doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>
          
<doctype-system>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</doctype- 
system>
         <encoding>UTF-8</encoding>
       </map:serializer>

Now you'll notice that the mime-type is XML as it should be. However  
this all behaves very differently in different browsers. Safari it  
crashes, Camino and Mozilla it displays out as text  (I'll test IE  
later), if you look at the source all seems to be well. If you copy  
paste the source it displays as XHTML should.

OK so this is a HttpHeader issue?



Jason Lane

Developer
Root10 developments


Re: XHTML 1.1

Posted by Konstantin Piroumian <kp...@apache.org>.
From: "g4" <ja...@root10.net>

> Hi list,
>
> I thought I had this issue solved,  alas no. OK I have this in
> sitemap.xmap:
>
>      <map:serializer name="html" mime-type="text/xml"

Shouldn't the mime-type be something like 'text/xhtml'? I think that this is
the source of issue with IE, don't know about the others.

-- Konstantin

> src="org.apache.cocoon.serialization.XMLSerializer">
>          <doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>
>
> <doctype-system>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</doctype-
> system>
>          <encoding>UTF-8</encoding>
>        </map:serializer>
>
> Now you'll notice that the mime-type is XML as it should be. However
> this all behaves very differently in different browsers. Safari it
> crashes, Camino and Mozilla it displays out as text  (I'll test IE
> later), if you look at the source all seems to be well. If you copy
> paste the source it displays as XHTML should.
>
> OK so this is a HttpHeader issue?
>
>
>
> Jason Lane
>
> Developer
> Root10 developments
>
>