cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fraser, Diane" <Diane.Fra...@pahv.xerox.com>
Subject RE: Why can't I put html tags in message catalogs?
Date Wed, 14 Jan 2004 00:00:40 GMT
Hi,

This doesn't work:

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

I get the error, "Unable to locate resource: messages (key [messages])"
(with the long stacktrace below).

Diane

-----Original Message-----
From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de]
Sent: Tuesday, January 13, 2004 3:54 PM
To: users@cocoon.apache.org
Subject: Re: Why can't I put html tags in message catalogs?


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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message