cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject [C2][XSP][PATCH] Bug in xsp:element
Date Mon, 06 Nov 2000 16:46:57 GMT
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