You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <vg...@hns.com> on 2000/11/06 17:46:57 UTC
[C2][XSP][PATCH] Bug in xsp:element
Hi,
Following construction:
<xsp:element name="p">
<xsp:expr>new java.util.Date()</xsp:expr>
</xsp:element>
Generates wrong Java code:
this.contentHandler.startElement("", "p", "p", xspAttr);
xspAttr.clear();
this.characters("\n\t\t");
here> (new java.util.Date())
this.characters("\n\t\t");
this.contentHandler.endElement("", "p", "p");
There are two possibilities to solve this problem:
1. Workaround - use <xsp:content> tag:
<xsp:element name="p">
<xsp:content><xsp:expr>new java.util.Date()</xsp:expr></xsp:content>
</xsp:element>
2. Patch - attached.
Thanks,
Vadim Gritsenko
(W) 301-428-5500 x 3253