That certainly is do-able:
<xsp:page xmlns:xsp="http://apache.org/xsp" language="java"> <root> </root> <xsp:structure> <xsp:include>java.util.Date</xsp:include> </xsp:structure> <xsp:logic> private void yourMethod(Date d) { } </xsp:logic> </xsp:page> Make sure you put the method outside of (before or after) your <root> element, though, or the XSP won't compile. (It'll try to insert the method into the body of the XSP's generate method.) DR At 11:19 AM 12/5/01 -0600, you wrote: >Hi Lily, > >I haven't taken a detailed look at how Cocoon actually compiles xsp docs, >but I believe that will solve the problem. > >Harry > >-----Original Message----- >From: Lily Zou [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, December 04, 2001 12:51 PM >To: [EMAIL PROTECTED] >Subject: RE: Cocoon's capacity > > > Thanks a lot, Harry. Your advice is extremely helpful. By the way, can I >create private method within a xsp or xml page so that the size of main part >could be reduced ? > >Lily --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>