cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Bekema" <Nico.Bek...@ctp.com>
Subject RE: i18n in combination with xsp:attribute
Date Tue, 07 Jan 2003 08:37:24 GMT
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


>>> HLai@coremetrics.com 01/07/03 12:15AM >>>

From:	HLai@coremetrics.com
Sent:	Tuesday, January 07, 2003 12:15 AM
To:	'cocoon-users@xml.apache.org'" <cocoon-users@xml.apache.org>
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:Nico.Bekema@ctp.com] 
Sent: Monday, January 06, 2003 4:48 PM
To: cocoon-users@xml.apache.org 
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

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



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


Mime
View raw message