Thank you Lionel, I will try it out.
-----Original Message-----
From: Lionel Crine [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 9:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Question on generators...
Yes you can do a generator :
Here is what I did, this is a main structure :
import your_package;
public class your_class extends ComposerGenerator (or
absctractGenerator)
{
...
public void setup(SourceResolver resolver, Map objectModel, String
src, Parameters par)
throws ProcessingException, SAXException, IOException
{
super.setup(resolver, objectModel, src, par);
}
public void recycle()
{
}
public void generate() throws SAXException, IOException,
ProcessingException
{
/* to generate sax events */
}
for exemple:
public void your_method throws IOException, SAXException,
ProcessingException
{
}
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>