cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Rigby" <ro...@gondolier.org.uk>
Subject Attributes in i18n
Date Mon, 02 Jul 2007 12:32:46 GMT
How do I do this, please?  None of these work:
 
<catalogue>
	<message key="message1">Click the <a href="{0}">link</a></message>
	<message key="message2">Click the &lt;a
href=&quot;{0}&quot;&gt;link&lt;/a&gt;</message>
	<message key="message3">Click the<![CDATA[<a
href="{0}">]]>link<![CDATA[</a>]]></message>
	<message key="message4">Click the {0}link{1}</message>
</catalogue>

<page xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
	<p><i18n:translate><i18n:text key="message1"/>
		<i18n:param>page.html</i18n:param></i18n:translate></p>
	<p><i18n:translate><i18n:text key="message2"/>
		<i18n:param>page.html</i18n:param></i18n:translate></p>
	<p><i18n:translate><i18n:text key="message3"/>
		<i18n:param>page.html</i18n:param></i18n:translate></p>
	<p><i18n:translate><i18n:text key="message4"/>
		<i18n:param><![CDATA[<a href="page.html">]]></i18n:param>
	
<i18n:param><![CDATA[</a>]]></i18n:param></i18n:translate></p>
</page>

<result>
	<p>Click the <a href="{0}">link</a></p>
	<p>Click the &lt;a href="page.html"&gt;link&lt;/a&gt;</p>
	<p>Click the &lt;a href="page.html"&gt;link&lt;/a&gt;</p>
	<p>Click the &lt;a href="page.html"&gt;link&lt;/a&gt;</p>
</result>

The i18n:attr feature seems to solve a different problem.

The result I want, of course, is

	<p>Click the <a href="page.html">link</a></p>


Thanks

Robin Rigby
robin@gondolier.org.uk
http://www.gondolier.org.uk
07785 765017



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


Mime
View raw message