cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject FW: [C2][XSP][PATCH] Bug in xsp:element
Date Fri, 10 Nov 2000 22:48:16 GMT
Hi,

Can somebody take care about this patch?
Of course one can use workaround - but why should
we leave this bug?

Thanks!
Vadim

> -----Original Message-----
> From: Vadim Gritsenko [mailto:vgritsenko@hns.com]
> Sent: Monday, November 06, 2000 11:47 AM
> To: Cocoon Developers
> Subject: [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
Mime
View raw message