The i18n transformer shall be mixed content aware, i.e. you *can* put *XML* content in it. But you put the tags in text form in it, not as XML. The error is the try to escape the quotes via back slash. You must simply write them as they are. This should work:

<message key="copyright_company">Copyright <font color="#4444FF">1996-2004</font> Any Corporation. All Rights Reserved.</message>

Joerg

On 14.01.2004 00:10, Fraser, Diane wrote:

Hi,

        I want to put html formatting tags in my localized message catalogs
but cocoon throws an internal server error when I do (stacktrace below).
The error message is "Unable to locate resource: messages (key [messages])".
If I expand the < and > to &<; and &>; I no longer get the server error, but
the tags are displayed in the browser.
        I am using cocoon-2.1.2, tomcat-4.1.18 and j2sdk1.4.1_02 on Windows
2000.

An example of my message catalog file follows:

        <?xml version="1.0" encoding="iso-8859-1"?>
        <catalogue xml:lang="en">
                <message key="copyright_company">Copyright <font
color=\"#4444FF\">1996-2004</font> Any Corporation. All Rights
Reserved.</message>
        </catalogue>

        and I also tried:
                <message key="copyright_xerox">Copyright &lt;font
color=&quot;#4444FF&quot;&gt;1996-2004 &lt;/font&gt; Xerox Corporation. All
Rights Reserved.</message>

I really need this capability; any thoughts?

        Thank you,
        Diane Fraser


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to