cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Bug in SessionAttributeGenerator?
Date Wed, 08 Oct 2003 12:37:38 GMT
On Tue, 2003-10-07 at 16:41, Andrzej Jan Taramina wrote:
> I ran into what seems to be the infamous "failed to execute pipeline" problem 
> with Cocoon 2.1.2 in trying to execute a simple XSLT transform.  
> 
> Eliminating the transform from the pipeline and serializing directly to XML 
> showed well formed XML going into the transform step, which was very 
> frustrating, so I put in a logging transform. Lo and behold, the logger 
> showed that the startDocument and endDocument SAX events were doubled up!
> 
> What caused this problem is that I had set a session attribute to hold the 
> XML document I wanted transformed, but I had set that attribute to be the DOM 
> Document object, then used SessionAttributeGenerator to create the SAX event 
> stream for the transformation.  This should be perfectly acceptable!
> 
> Problem is that the generate() method in SessionAttributeGenerator looks as 
> follows:
<snip/>

I just committed a fix, could you try it out and confirm that it works?
Thanks.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message