cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SriKumar Kareti" <srikumar.kar...@spanlink.com>
Subject RE: Question on generators...
Date Fri, 31 Jan 2003 16:41:57 GMT

Thank you Lionel, I will try it out.

-----Original Message-----
From: Lionel Crine [mailto:crine@4dconcept.fr]
Sent: Friday, January 31, 2003 9:42 AM
To: cocoon-users@xml.apache.org
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message