cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "enieto@isotrol.com" <Elvira.Ni...@isotrol.com>
Subject Re: AW: Example for a "transforming" generator
Date Mon, 09 May 2005 09:16:42 GMT
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:news@sea.gmane.org] Im Auftrag von Jorg Heymans
>>Gesendet: Freitag, 6. Mai 2005 20:50
>>An: dev@cocoon.apache.org
>>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
>>>
>>>
>>>      
>>>
>
>
>  
>


--   
   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: Elvira.Nieto@isotrol.com 
 


Mime
View raw message