RE: i18n in combination with xsp:attribute

2003-01-07 Thread Nico Bekema
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]




RE: i18n in combination with xsp:attribute

2003-01-07 Thread Lai, Harry
Hi Nico,

You need to use BOTH the prefix and uri attributes.  So you should have:

xsp:attribute name=key prefix=i18n
uri=http://apache.org/cocoon/i18n/2.0;
myKey
/xsp:attribute

Just as a caveat, I haven't actually tried this, but based on the
documentation, that should work.  =)

Harry

-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 2:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: i18n in combination with xsp:attribute


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]

-
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]




RE: i18n in combination with xsp:attribute

2003-01-07 Thread Nico Bekema
Hi Harry,

you are absolutely right.
It's working fine now.
thx very much.

Nico

 [EMAIL PROTECTED] 01/07/03 04:53PM 

From:   [EMAIL PROTECTED]
Sent:   Tuesday, January 07, 2003 4:53 PM
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject:RE: i18n in combination with xsp:attribute
Priority:   Normal

Hi Nico,

You need to use BOTH the prefix and uri attributes.  So you should have:

xsp:attribute name=key prefix=i18n
uri=http://apache.org/cocoon/i18n/2.0;
myKey
/xsp:attribute

Just as a caveat, I haven't actually tried this, but based on the
documentation, that should work.  =)

Harry

-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 2:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: RE: i18n in combination with xsp:attribute


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]

-
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]




RE: i18n in combination with xsp:attribute

2003-01-06 Thread Lai, Harry
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]