cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunsberger, Peter" <Peter.Hunsber...@stjude.org>
Subject RE: Transform runs twice
Date Tue, 23 Mar 2004 16:10:08 GMT
Vadim Gritsenko <vadim@reverycodes.com> comes through once more:
 
> 
> Hunsberger, Peter wrote:
> 
> >I've got a straight forward pipeline where it appears that a 
> transform 
> >runs twice:
> >
> >            <map:match pattern="*/systemInformation**">
> >                <map:generate type="CTService"/>
> >                <map:transform 
> src="stylesheets/resolve_sysInfo.xsl"/>
> >                <map:transform src="stylesheets/sysInfo.xsl"/>
> >                <map:serialize/>
> >            </map:match>
> >
> >If I look at the pipeline output after the generator I have the 
> >expected data.  If I capture that data and feed it into the 
> >resolve...xsl (using Stylus or Xslerator) things work as 
> expected.  If 
> >I capture the output of the pipeline after the resolve...xsl 
> I see two 
> >copies of the output XML!!!!  The next transform then runs 
> twice and I 
> >get the output XHTML twice (complete with two top level <body> tags, 
> >which IE happily accepts).
> >
> >I'm running Cocoon 2.1.4 with Saxon.  Any ideas on how to track this 
> >down or what to look for?
> >  
> Saxon can do this when endDocument() is sent twice. Insert log 
> transformer in between - check that generated SAX events are ok
> 

Many thanks, that was indeed it; sub-class and super class both did a
start/endDocument()...


Mime
View raw message