Perhaps this resolve you your doubt:
http://cocoon.apache.org/2.1/installing/updating.html#XML+Parser
Best regards
Thomas Coboos escribi�:
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:
reacts onHello,
I need to write my own generator which reads a xml file and
some special elements which can occur in this xml. I knowhow to write
the generator but my problem is, I don't know how to passthe 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'tcan 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
-- Elvira Nieto Carretero
Consultora y Analista de Portales de Internet
Isotrol, S.A.
---------------------------------------------
Isotrol, S.A.
Edificio Innova
Avda. de la Innovacion, 1, 3� planta
41020 SEVILLA
Tel.: 955 036 800 Fax: 955 036 849
Correo-e: [EMAIL PROTECTED]
