Hi again,

..my defininition of pipeline. Hm, ok I see, maybe this word was chosen wrongly 
in this context.
What I want to convert to a DOM is the last SAX event bevore the serialization 
happens. Further, I want to do some computation on this DOM. But this 
computation shouldn't (or better must not!) influence the output which becomes 
serialized in the next step.
At the moment I'm not sure which of the two solutions you offered in your last 
mail would suit the above benefit, because on one hand I am within a pipeline, 
but on the other I am also within a SAX stream at this moment - right? Maybe 
its even possible to perform all this much easier, but you are the experts and 
thats the reason for asking ;-).

thanks for your previous answers and your future help

with best regards

Thomas

-------- Original-Nachricht --------
Datum: Wed, 23 Aug 2006 00:58:14 -0400
Von: [EMAIL PROTECTED]
An: [email protected]
Betreff: Re: creating DOM out of SAX event?

> On 8/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > can someone tell me if its possible to create a DOM out of a currently
> present SAX event in a pipeline (before the pipeline becomes serialized)?
> Not to confuse you, the pipeline would for sure use the current SAX event for
> further computation and not the DOM.
> > In other words, I'd like to have the current status of the pipeline (so
> the current SAX event) as kind of input stream for the generation of a DOM
> which becomes instantiated in e.g. an XSP file within this specific
> pipeline.
> 
> It depends on your definition of "pipeline".
> 
> In a Lenya/Cocoon Pipeline (which is the topic of this ML), extend the
> AbstractDOMTransformer.  I have used it for Transformers which use the
> whole Document.
> 
> If you are working in SAX events, and want to retrieve the DOM for the
> current node, use a recorder.  startRecording() in the startElement()
> and DOMFragment = endRecording() in the endElement().  See:
> http://cocoon.apache.org/2.0/apidocs/org/apache/cocoon/transformation/AbstractSAXTransformer.html
> 
> solprovider
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to