You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Merico Raffaele <ra...@less.ch> on 2009/01/23 08:21:53 UTC

AW: Avoid escaping chars in script/style only in HTMLSerializer? (Re: svn commit: r515096)

Dear Devs

One of my current tasks is making some cocoon 2.1.9 apps xhtml compliant.
And I have noticed as posted here that there is a problem with inline java
script code that we need in connection with the calendar/date picker of Matt
Kruse. Now that you have found a way how to fix it I have the following
questions:
- When do you aspect to release the corrected XHTML serializer in terms of
time?
- Can I patch my running cocoon 2.1.9 applications?
- If yes, how do I know when the corrected serializer is available and how I
have to proceed to patch my running 2.1.9 apps?

For your support many thanks in advance ... Raffaele

-----Ursprüngliche Nachricht-----
Von: Antonio Gallardo [mailto:agallardo@agssa.net] 
Gesendet: Donnerstag, 22. Januar 2009 21:22
An: dev@cocoon.apache.org
Betreff: Re: Avoid escaping chars in script/style only in HTMLSerializer?
(Re: svn commit: r515096)

Andreas Hartmann escribió:
> Hi Carsten,
>
> cziegeler@apache.org schrieb:
>> Author: cziegeler
>> Date: Tue Mar  6 04:11:29 2007
>> New Revision: 515096
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=515096
>> Log:
>> Correctly handle content of script and style tag as cdata for html.
>
> is there a particular reason why this change hasn't been applied to
> the XHTMLSerializer as well? IIUC, the script/style CDATA handling is
> also defined for XHTML [1].

I think this is a better solution. Please implement it in this way. Move
the code from HTMLSerializer to XHTML Serializer. Thanks for taking care
of this long standing issue.

Best Regards,

Antonio Gallardo.

>
> [1] http://www.w3.org/TR/xhtml1/#h-4.8
>



Re: AW: Avoid escaping chars in script/style only in HTMLSerializer? (Re: svn commit: r515096)

Posted by Andreas Hartmann <an...@apache.org>.
Merico Raffaele schrieb:
> Dear Devs
> 
> One of my current tasks is making some cocoon 2.1.9 apps xhtml compliant.
> And I have noticed as posted here that there is a problem with inline java
> script code that we need in connection with the calendar/date picker of Matt
> Kruse. Now that you have found a way how to fix it I have the following
> questions:
> - When do you aspect to release the corrected XHTML serializer in terms of
> time?

I have committed the patch. It should be available in the next releases 
of the 2.1 and 2.2 branches.

> - Can I patch my running cocoon 2.1.9 applications?

I think so – I'm not sure if 2.1.9 already contained the serializers 
block, but since it seems to be quite self-contained, it should be no 
problem to add it.

> - If yes, how do I know when the corrected serializer is available and how I
> have to proceed to patch my running 2.1.9 apps?

You could try to apply the patch [1] to your Cocoon codebase. If it 
doesn't match, you could check-out the current 2.1 branch from SVN and 
copy the Java classes from the serializers block to your Cocoon codebase.

[1] 
https://issues.apache.org/jira/secure/attachment/12398543/cocoon-serializers.txt

HTH,

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01