Just found a small bug in the I18nTransformer: if in an XML resource bundle, the contents of a message element is inside a CDATA section, then i18n:text would be replaced with an empty string. For translating attributes -- as shown in the Cocoons sample -- it worked fine though.
Diff is attached, there's only one line added. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED]
Index: MirrorRecorder.java =================================================================== RCS file: /home/cvspublic/xml-cocoon2/src/java/org/apache/cocoon/transformation/helpers/MirrorRecorder.java,v retrieving revision 1.5 diff -u -3 -p -u -r1.5 MirrorRecorder.java --- MirrorRecorder.java 31 Jan 2003 22:51:58 -0000 1.5 +++ MirrorRecorder.java 14 Feb 2003 11:20:57 -0000 @@ -235,6 +235,7 @@ public class MirrorRecorder } endElement(n.getNamespaceURI(), n.getNodeName(), n.getNodeName()); break; + case Node.CDATA_SECTION_NODE: case Node.TEXT_NODE: characters(n.getNodeValue()); break;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]