Re: Question about my Transformer

2004-01-30 Thread Andreas Hartmann
Bruno Dumon wrote: [...] > If you extend abstractdomtransformer you have access to the Document > instance, but i don't know if that makes your problem any easier. This is a good idea. It would make it easier, Actually, I think it would make it a lot harder. Yes, as far as this example is concern

Re: Question about my Transformer

2004-01-29 Thread Bruno Dumon
On Thu, 2004-01-29 at 18:04, Andreas Hartmann wrote: > Jorg Heymans wrote: > > > Is there any particular reason why you want to implement this as a > > transformer? A stylesheet seems to be easier in this case IMHO. > > I talked to Han some days ago, this transformer is just an > example to get

Re: Question about my Transformer

2004-01-29 Thread Andreas Hartmann
Jorg Heymans wrote: Is there any particular reason why you want to implement this as a transformer? A stylesheet seems to be easier in this case IMHO. I talked to Han some days ago, this transformer is just an example to get started. > If you extend abstractdomtransformer you have access to the D

Re: Question about my Transformer

2004-01-29 Thread Lionel Crine
StartElement is called each time there is a new start Element so there is already a loop. Do not forget to do the same with the endElement method. Lionel At 14:11 29/01/2004 +0100, you wrote: Hello I just implemented a simple transformer with the start method below: public void startEl

Re: Question about my Transformer

2004-01-29 Thread Jorg Heymans
Is there any particular reason why you want to implement this as a transformer? A stylesheet seems to be easier in this case IMHO. If you extend abstractdomtransformer you have access to the Document instance, but i don't know if that makes your problem any easier. Jorg Han Jon Theus wrote: H

Question about my Transformer

2004-01-29 Thread Han Jon Theus
Hello I just implemented a simple transformer with the start method below: public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException { String newLocalName = lo