You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/01/16 07:47:01 UTC

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

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