On Wed, 25 Feb 2009 14:05:16 +0100, Andreas Hartmann <[email protected]>
wrote:
> Hi André,
> 
> Florent André schrieb:
>> Now, my transformer can :
>> - create a Lenya document
>> - put content (inside <content>) into the document
>>
>> This two actions are now in a same "big function". And I would like to
> put
>> each action in a function :
>> - createLenyaDocument()
>> - addLenyaDocContent()
>>
>> So, I see different ways :
>>
>> 1 ------------
{etc, all with DOM}
[...]
> 
>> 4 ---------------
>> Another best way ??
> 
> Since you already process a SAX stream, I'd avoid the conversion to DOM
> before writing the content to the document's output stream. I'd just
> create the document and pipe the SAX events directly into the output
> stream, e.g. using a serializer.

If I well understand what you said, in my
LenyaDocWriting.startTransformingElement ( <content>,...) :
-I have to use startSAXRecording() 
- Instead of startRecording() 
? 

But I would like to have same capability than cocoon
SourceWritingTransformer : insert / replace nodes in the source. 

So I have to use Dom, no ? Or there is an option to do this with sax ? 


BIG thank you for all answers you give.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to