cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: Problem with XHTMLSerializers
Date Thu, 03 Nov 2005 07:43:13 GMT
Helma,

We have the same problem with our sites. As far is I know they only workaround 
is by putting a space between the script tags like <script>&#160;</script>

Regards,

Jeroen

hepabolu wrote:
> Guys,
> 
> please help, it's driving me crazy. I want valid XHTML 1.0 Transitional
> output, so I set
> 
>       <map:serializer logger="sitemap.serializer.xhtml"
> mime-type="text/html"
>          name="xhtml"
>          src="org.apache.cocoon.serialization.XMLSerializer">
>          <doctype-public>-//W3C//DTD XHTML 1.0
> Transitional//EN</doctype-public>
> 
> <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>

> 
>          <encoding>UTF-8</encoding>
> </map:serializer>
> 
> however, during transformations <script src="bla.js"></script> is added
> which ends up as <script src="bla.js"/>. The standard XHTMLserializer
> fails to turn it back into <script></script>.
> 
> So I tried Pier's XHTML serializer:
> 
>           <map:serializer name="exhtml"
>               logger="sitemap.serializer.exhtml"
> 
> src="org.apache.cocoon.components.serializers.XHTMLSerializer"
>               mime-type="text/html">
>               <encoding>UTF-8</encoding>
>              <doctype-public>-//W3C//DTD XHTML 1.0
> Transitional//EN</doctype-public>
> 
> <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>

> 
>           </map:serializer>
> 
> 
> This seems to produce correct XHTML, but Internet Explorer 6.0 (Win XP)
> now displays &apos; rather than the corresponding character.
> 
> What am I doing wrong?
> 
> BTW Jeremy and Sylvain: my initial problem turned out to be a wrong
> mime-type (yes, Sylvain you were correct ;-) ). I simply copied and
> pasted some javadoc and didn't properly check it.
> 
> 
> Bye, Helma
> 

Mime
View raw message