On 14.01.2004 04:33, Vadim Gritsenko wrote:

Mixed content works ok in i18n. Example from my file:

<message key="foo.text">
Bla-bla-bla. You can <a href="forms">print out blank forms</a> and complete them yourself if you like.
</message>


There was an issue with attributes, but it was fixed some time ago. I'm using some recent snapshot of Cocoon, and I think those fixes are not in release yet.... Yep, here is relevant piece from status.xml:

<action dev="VG" type="fix">
I18n transformer now works with translations containing elements with
attributes.
</action>


Good to hear, but I tried the i18n samples, maybe something is wrng with them. I changed in messages_en.xml simply

<message key="article_text2">This is another <a href="http://cocoon.apache.org";>i18n</a> paragraph and is also a cool one.</message>

The result is

"This is another paragraph and is also a cool one."

So the element a is missing. Are only the samples broken in what way ever ... ?


Sample's XSLT, context://samples/common/style/xsl/html/complex-page2html.xsl, does not have match for <a>. Try <link> instead. Another issue is <xsl:apply-templates select="text() | strong"/> statement in <xsl:template match="para"> in simple2page.xsl.

Oh, how stupid! I hadn't the stylesheets in mind.


So it's probably only a problem of Diane's Cocoon version. The handling of mixed content was added after 2.1.3 release from November. So she must either wait up to the next release or use the sources from CVS.

Thanks for clarification, Vadim.

Joerg

PS: Are you reading this list regularly or is it better to CC you? I don't want to spam you.


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



Reply via email to