cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Assaf Arkin <ar...@exoffice.com>
Subject Re: CDATA sections in output
Date Mon, 10 Jan 2000 20:15:01 GMT
Probably happens because of multiple calls to characters(), the
serializer thinks each one is a different CData section. This was a
reasonable assumption when I developed it for SAX 1, but need to be
revised for SAX 2 which supports startCData, endCData.

arkin


Stefano Mazzocchi wrote:
> 
> > Arno de Quaasteniet wrote:
> >
> > Hi,
> >
> > I'm having some problems with the XSLT processor included with
> > cocoon. It throws CData sections in it's output.
> >
> > An example of the generated output lookes like this:
> > <script><![CDATA[
> >     var ]]><![CDATA[Main]]><![CDATA[ = new
> > Toggle(']]><![CDATA[Main]]><![CDATA[', 'PageBook',
> > ]]><![CDATA[7]]><![CDATA[);
> >     ]]><![CDATA[Main]]><![CDATA[.ToggleActive(1);
> >     ]]></script>
> > I think you can imagine that this is never going to be executed by any
> > browser.
> 
> Arkin, how can I avoid this? any clue?
> 
> > When I use James clark's XT, i never have this problem.
> > Can somebody tell me how to solve or avoid this problem?
> > Thanks in advance,
> >
> > Arno
> 
> --
> Stefano Mazzocchi      One must still have chaos in oneself to be
>                           able to give birth to a dancing star.
> <stefano@apache.org>                             Friedrich Nietzsche
> --------------------------------------------------------------------
>  Come to the first official Apache Software Foundation Conference!
> ------------------------- http://ApacheCon.Com ---------------------

Mime
View raw message