Hi,
unfortunately that did not help and I am still wondering what is causing this.
<i18n:text>
<xsp:attribute name="key" prefix="i18n">
myKey
</xsp:attribute>
defaultValue
</i18n:text>
This always results in the defaultValue (myKey is defined)
If I look at the an intermediate result using a cocoon view it all looks fine but the
end result will always return defaultValue.
Just using:
<i18n:text i18n:key="myKey">
defaultValue
</i18n:text>
does result in the translated text using myKey.
thx,
Nico
>>> [EMAIL PROTECTED] 01/07/03 12:15AM >>>
From: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 12:15 AM
To: '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: i18n in combination with xsp:attribute
Priority: Normal
Hi Nico,
I believe the problem is in trying to set the namespace via the name
attribute. xsp:attribute has two attributes (uri and prefix) for setting
the namespace. Go to this page:
http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax
And scroll down to the section on xsp:attribute. Hope that helps!
Harry
-----Original Message-----
From: Nico Bekema [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 4:48 PM
To: [EMAIL PROTECTED]
Subject: i18n in combination with xsp:attribute
Hi,
can somebody explain to me why the following piece of xsp does not work
<i18n:text>
<xsp:attribute name="i18n:key">
myKey
</xsp:attribute>
defaultValue
</i18n:text>
while this piece does work
<i18n:text i18n:key="myKey">
defaultValue
</i18n:text>
I would like to dynamically create the i18n:text element by getting the
i18n:key and the default value from a database.
thx,
Nico
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>