Hi Jorg,

what I have to write is a generator which will be used directly by our
customer. Because a generator is much more "userfriendly" as a stylesheet
and a special pipeline for that I decided to write a generator instead.

Now I think I resolved the problem. I'm using the component Parser to parse
the underlying xml document. The generator itself implements XMLConsumer so
it can declare all content handler methods. Because of this reason I called
Parse#setContentHandler(this). It works perfectly. Thanks.

One more question: The component Parser is marked as deprecated. The
suggestion is to use the Avalon XMLParser. Which component in the
cocoon.xconf is it?

Thank you a lot.

Regards
Stephan

> -----Urspr�ngliche Nachricht-----
> Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Jorg Heymans
> Gesendet: Freitag, 6. Mai 2005 20:50
> An: [email protected]
> Betreff: Re: Example for a "transforming" generator
> 
> Why do you insist on doing this in a generator ? Give a bit 
> more detailed information about your usecase, there usually 
> is more than one way to do things ...
> 
> Jorg
> 
> Thomas Coboos wrote:
> > Hello,
> > 
> > I need to write my own generator which reads a xml file and 
> reacts on 
> > some special elements which can occur in this xml. I know 
> how to write 
> > the generator but my problem is, I don't know how to pass 
> the events 
> > back to the generator so it can retrieve the events read before and 
> > act on the special elements. A generator which covers some of my 
> > requirements is the JXTemplateTransformer but sorry I don't 
> can walk 
> > thru this bunch of code (I simply don't understand it) :)
> > 
> > Do you have a simple example or a hint for me how I can make a 
> > Generator "transformable".
> > 
> > Thank you a lot.
> > 
> > Regards
> > Stephan
> > 
> > 
> 

Reply via email to