Quoting Simone Gianni <[EMAIL PROTECTED]>:

[EMAIL PROTECTED] wrote:

Follow a fragment of xsp code that generate xml:
<xsp:page
         language="java"
         xmlns:xsp="http://apache.org/xsp";
         xmlns:esql="http://apache.org/cocoon/SQL/v2";
         xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
         space="strip">
...
<xsp:element name="area">
   <xsp:attribute name="id"><esql:get-int column="pos" /></xsp:attribute>
<xsp:attribute name="name"><esql:get-string column="name" /></xsp:attribute> <xsp:attribute name="colour"><esql:get-string column="colour" /></xsp:attribute> <xsp:attribute name="label"><esql:get-string column="name"/></xsp:attribute>
   <xsp:attribute name="i18n:attr">label</xsp:attribute>
...


I think you should try to generate this attribute this way :

<xsp:attribute name="attr" prefix="i18n"
uri="http://apache.org/cocoon/i18n/2.1";>label</xsp:attribute>

Yes! It works!

Thank you very much.

Alberto




I'm not an XSP expert, but the
/cocoon-2.1.X/src/blocks/xsp/java/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl file (that transforms your xsp to a java class) apparently uses this parameters
:

name : is the attribute name (which is not i18n:attr, but just attr)
prefix : is the prefix you want to map the namespace of this attribute to.
uri : is the namespace uri

Hope this helps,
ciao,
Simone


--
Simone Gianni

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



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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

Reply via email to