cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Brant" <pmbr...@gmx.at>
Subject Small change to JXTemplateGenerator
Date Thu, 16 Sep 2004 00:33:37 GMT
Hi all,

I think this is a bug, but just to make sure.  When copying an attribute
value containing no expressions, the original value shouldn't be used
because \ escapes will change the final value.  Patch is against
BRANCH_2_1_X.

Thanks,

Pete

--- JXTemplateGenerator.java.orig       2004-09-16 02:08:03.000000000 +0200
+++ JXTemplateGenerator.java    2004-09-16 02:23:46.000000000 +0200
@@ -1194,7 +1194,7 @@
                 }
                 if (buf.length() > 0) {
                     if (substEvents.size() == 0) {
-                        attributeEvents.add(new CopyAttribute(uri, local,
qname, type, value));
+                        attributeEvents.add(new CopyAttribute(uri, local,
qname, type, buf.toString()));
                     } else {
                         substEvents.add(new Literal(buf.toString()));
                         attributeEvents.add(new SubstituteAttribute(uri,
local, qname, type, substEvents));

-- 
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl
Mime
View raw message