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]
