Hello Igor,

it should work and does so in the samples:

http://127.0.0.1:8888/samples/blocks/xsp/java/simple

simple.xsp:

<xsp:element>
  <xsp:param name="name">
    <xsp:expr>"P".toLowerCase()</xsp:expr>
  </xsp:param>
  <xsp:attribute name="align">left</xsp:attribute>
  <i>This paragraph was dynamically generated ...</i>
</xsp:element>

I also modified it for some testing:

<span style="display: block;">
  <xsp:attribute name="align">left</xsp:attribute>
  <xsp:attribute name="test">20</xsp:attribute>
  <i>This paragraph was dynamically generated ...</i>
   </span>

and got following output:

<span style="display: block;" align="left" test="20">
  <i>This paragraph was dynamically generated ...</i>
</span>

Can you have a look at the generated Java code?

Joerg

On 08.04.2004 16:02, Igor Galperin wrote:

Sorry, it does not display my letter correctly:
In Cocoon1 I could have : <xsp:attribute name="size">20</xsp:attribute> , It does not work work for Cocoon2. The generated attribute does not have value.
I could resolve the issue with :
<xsp:attribute name="size"><xsp:expr>"20"</xsp:expr></xsp:attribute>
Is there better solution?
Thank you.
Igor.


Igor Galperin <[EMAIL PROTECTED]> wrote:
Hi!
I am trying to migrate some Cocoon1 pages to Cocoon2.
The following is one of the issues I got.
In Cocoon1 I could have the following statement: text but it does not work for Cocoon2. I resolved this issue with the following statement: "text" Maybe somebody has better idea. Maybe something is not configured correctly.
(It is hard to find the company which writes backward compatible code nowadays). Thank you.
Igor.


Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

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



Reply via email to