cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dylan Walsh <Dylan.Wa...@Kadius.com>
Subject RE: Big XSP Problem with backslashes or double quotes in attribut e values.
Date Mon, 15 Jan 2001 10:32:42 GMT
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
> 

Mime
View raw message