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

2009-01-22 Thread Carsten Ziegeler
Andreas Hartmann schrieb: Hi Carsten, cziege...@apache.org schrieb: Author: cziegeler Date: Tue Mar 6 04:11:29 2007 New Revision: 515096 URL: http://svn.apache.org/viewvc?view=revrev=515096 Log: Correctly handle content of script and style tag as cdata for html. is there a

Re: Very early 2.1.12-dojo1_1-dev committed

2009-01-22 Thread lingerer huang
Hi,Jeremy Is there any progress?I know it is not appropriate to ask that,but I want to help to speed it up. Regards Roy Huang

Re: request encoding conundrum

2009-01-22 Thread Andreas Hartmann
Hi Jeremy, Jeremy Quinn schrieb: Many thanks for your interest. Here is the diff, I hope it helps. I am a little bit behind the latest update, I hope that does not cause you any problems. I noticed that you have committed the patch – thanks a lot, the issue in Lenya is resolved! --

Re: Entity escaping in o.a.c.c.serializers.XHTMLSerializer

2009-01-22 Thread Andreas Hartmann
Andreas Hartmann schrieb: Andreas Hartmann schrieb: The XHTMLSerializer, or, more specifically, the XHMLEncoder, from the serializers block in Cocoon 2.1.x escapes all characters with a corresponding HTML 4.0 character entity reference into this entity reference. This causes issues with

Re: Entity escaping in o.a.c.c.serializers.XHTMLSerializer

2009-01-22 Thread Antonio Gallardo
Hi Andreas, We hit the same issue some years ago and we found a more pragmatic solution: In org.apache.cocoon.components.serializers.encoding.XHTMLEncoder add the line marked with a + sign: private static final char ENCODINGS[][][] = { +{ { 39 } , #39;.toCharArray() }, { { 160 }

Re: Entity escaping in o.a.c.c.serializers.XHTMLSerializer

2009-01-22 Thread Andreas Hartmann
Hi Antonio, thanks for your reply! Antonio Gallardo schrieb: We hit the same issue some years ago and we found a more pragmatic solution: In org.apache.cocoon.components.serializers.encoding.XHTMLEncoder add the line marked with a + sign: private static final char ENCODINGS[][][] = { +

[jira] Commented: (COCOON-2249) XHTMLSerializer uses entity references quot; and apos; which cause JavaScript parse errors

2009-01-22 Thread Antonio Gallardo (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12666254#action_12666254 ] Antonio Gallardo commented on COCOON-2249: -- In the patch MinimalXMLEncoder.java

[jira] Updated: (COCOON-2249) XHTMLSerializer uses entity references quot; and apos; which cause JavaScript parse errors

2009-01-22 Thread Andreas Hartmann (JIRA)
[ https://issues.apache.org/jira/browse/COCOON-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Hartmann updated COCOON-2249: - Attachment: MinimalXMLEncoder.java This is the MinimalXMLEncoder that was missing in

Re: Entity escaping in o.a.c.c.serializers.XHTMLSerializer

2009-01-22 Thread Antonio Gallardo
Andreas Hartmann escribió: Unfortunately it doesn't work for me. The XHTML source contains the NCR for the ' character which also causes a JavaScript error. To make it work, it would have to look like this: private static final char ENCODINGS[][][] = { { { 34 } , \.toCharArray()

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

2009-01-22 Thread Antonio Gallardo
Andreas Hartmann escribió: Hi Carsten, cziege...@apache.org schrieb: Author: cziegeler Date: Tue Mar 6 04:11:29 2007 New Revision: 515096 URL: http://svn.apache.org/viewvc?view=revrev=515096 Log: Correctly handle content of script and style tag as cdata for html. is there a particular

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

2009-01-22 Thread Merico Raffaele
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