You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dylan Walsh <Dy...@Kadius.com> on 2001/01/15 11:32:42 UTC

RE: Big XSP Problem with backslashes or double quotes in attribut e values.

Thanks to Michael Bierenfield who pointed out that the Java files are
generated with an XSL transformation:
org/apache/cocoon/processor/xsp/xsp-java.xsl.

I changed the template for attributes, and put in some code to escape
backslashes and quotes in attribute values. The search and replace is based
on an example from the XSLT FAQ. I regenerated the Cocoon.jar with the new
xsp-java.xsl. I have tested this and it fixes the problem.

Here is the corrected version of the file. Please feel free to use this in
future versions of Cocoon, if you wish. Note that the version below is for
Cocoon 1.7.4, however the changes can be applied to the 1.8 version, and the
modified templates have comments with "DW" at the start of them for easy
location.

 <<xsp-java.xsl>> 

> -----Original Message-----
> From:	Robin Green [SMTP:greenrd@hotmail.com]
> Sent:	Friday, January 12, 2001 9:20 PM
> To:	cocoon-users@xml.apache.org
> Cc:	Dylan.Walsh@Kadius.com
> Subject:	Re: Big XSP Problem with backslashes or double quotes in
> attribute va lues.
> 
> Thanks, this is a confirmed bug. You can track progress here:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=33
> 

RE: Big XSP Problem with backslashes or double quotes in attribut e values.

Posted by Donald Ball <ba...@webslingerZ.com>.
On Mon, 15 Jan 2001, Dylan Walsh wrote:

> Thanks to Michael Bierenfield who pointed out that the Java files are
> generated with an XSL transformation:
> org/apache/cocoon/processor/xsp/xsp-java.xsl.
>
> I changed the template for attributes, and put in some code to escape
> backslashes and quotes in attribute values. The search and replace is based
> on an example from the XSLT FAQ. I regenerated the Cocoon.jar with the new
> xsp-java.xsl. I have tested this and it fixes the problem.
>
> Here is the corrected version of the file. Please feel free to use this in
> future versions of Cocoon, if you wish. Note that the version below is for
> Cocoon 1.7.4, however the changes can be applied to the 1.8 version, and the
> modified templates have comments with "DW" at the start of them for easy
> location.

i just checked these changes into xsp-java.xsl for c1. dylan, thanks for
your persistance and solution. seems to work like a charm.

- donald


RE: Big XSP Problem with backslashes or double quotes in attribut e values.

Posted by Donald Ball <ba...@webslingerZ.com>.
On Mon, 15 Jan 2001, Dylan Walsh wrote:

> Thanks to Michael Bierenfield who pointed out that the Java files are
> generated with an XSL transformation:
> org/apache/cocoon/processor/xsp/xsp-java.xsl.
>
> I changed the template for attributes, and put in some code to escape
> backslashes and quotes in attribute values. The search and replace is based
> on an example from the XSLT FAQ. I regenerated the Cocoon.jar with the new
> xsp-java.xsl. I have tested this and it fixes the problem.
>
> Here is the corrected version of the file. Please feel free to use this in
> future versions of Cocoon, if you wish. Note that the version below is for
> Cocoon 1.7.4, however the changes can be applied to the 1.8 version, and the
> modified templates have comments with "DW" at the start of them for easy
> location.

i just checked these changes into xsp-java.xsl for c1. dylan, thanks for
your persistance and solution. seems to work like a charm.

- donald