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]>

Reply via email to