cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasha Joachimsthal" <j.joachimst...@hippo.nl>
Subject RE: XHTML Serializer bug?
Date Tue, 09 Oct 2007 07:27:57 GMT
 

> -----Original Message-----
> From: Insight 49, LLC [mailto:insight49@gmail.com] 
> Sent: dinsdag 9 oktober 2007 3:42
> To: dev@cocoon.apache.org
> Subject: Re: XHTML Serializer bug?
> 
> Vadim Gritsenko wrote:
> > Dan Hertz wrote:
> >> I hope someone can help me debug my HTML Serializer issue:
> >>
> >> I've trying to generate strict XHTML code where all tags are closed
> >> (eg: <image/>, <meta/>).
> >>
> >> If I set the sitemap serializer to
> >> org.apache.cocoon.serialization.XMLSerializer, the tags 
> get closed, 
> >> but my Javascripts don't load.
> >
> >> If I set it to 
> org.apache.cocoon.serialization.HTMLSerializer, then 
> >> my Javascripts load fine, but the tags aren't closed.
> >
> > Did you try 
> org.apache.cocoon.components.serializers.XHTMLSerializer?
> >
> > Vadim
> >
> 
> Thanks for your XHTMLSerializer suggestion. It closes the 
> elements nicely, but changes my quotes ( " ) to &quot;
> 
> That's why my scripts aren't running! (ah-ha!)
> 
> Funny thing is...even if I wrap my <script> sections in 
> <![CDATA[  (in my stylesheets), the xhtmlserializer still 
> changes my ( " ) to &quot;
> 
> Any suggestions?
> 
> Dan
> 
> Thyanks!

Hi Dan,

You can work around this by using <xsl:comment> instead of <![CDATA[.
This will not work if there's a JX generation or transformation after
the <xsl:comment> because it will remove all information in the
<xsl:comment>.

Regards,

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466
www.hippo.nl


> 

Mime
View raw message