> -----Ursprüngliche Nachricht-----
> Von: Bruno Dumon [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 1. September 2003 19:21
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: Incremental Processing in Cocoon 2.1
> 
> On Mon, 2003-09-01 at 17:57, Bruno Dumon wrote:
> > On Mon, 2003-09-01 at 16:23, Hauke Ernst wrote:
> > > On Mon, 2003-09-01 at 14:04, Hauke Ernst wrote:
> > > > Hello,
> > > >
> > > > yes, this is how it worked for 2.0.3.
> > > >
> > > > The problem only occurs with 2.1. My configuration in cocoon.xconf
> is
> > > >
> > > >   <xslt-processor logger="core.xslt-processor">
> > > >     <parameter name="use-store" value="true"/>
> > > >     <parameter name="incremental-processing" value="true"/>
> > > >   </xslt-processor>
> > > >
> > > >   <!--+
> > > >       | Xalan XSLT Processor
> > > >       +-->
> > > >   <component class="org.apache.excalibur.xml.xslt.XSLTProcessorImpl"
> > > logger="core.xslt-processor"
> > > role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan">
> > > >     <parameter name="use-store" value="true"/>
> > > >     <parameter name="incremental-processing" value="true"/>
> > > >     <parameter name="transformer-factory"
> > > value="org.apache.xalan.processor.TransformerFactoryImpl"/>
> > > >   </component>
> > > >
> > > > Unfortunately, this does not lead to a streamed output.
> > >
> > > - How can you be so sure?
> > >
> > >
> > > One of my test-transformations applied on a huge dataset takes between
> 1
> > > and minutes. In cocoon 2.0.3, I can see that the output is delivered
> > > immediately, in 2.1 the output starts to appear on the screen after 1-
> 2
> > > minutes.
> > > The pipeline is
> > >
> > >       <map:match pattern="renderhierarchicalfiletoc_xalan.xml">
> > >         <map:generate src="Testfiles/hierarchicalTOC.xml"/>
> > >         <map:transform type="xalan"
> > > src="stylesheets/toc_fromhierarchicaltoc2.xsl"/>
> > >         <map:serialize encoding="UTF-8" type="html"/>
> >
> > BTW, that "encoding" attribute doesn't exist.
> >
> > >       </map:match>
> > >
> > > There is no sorting in the transformation which could prevent it from
> > > streaming.
> >
> > ok, you might be right, though AFAIK nothing changed in Cocoon that
> > should prevent this behaviour. To be absolutely sure that it's Cocoon
> > who doesn't set the incremental-processing parameter, could you try out
> > using the attached transformer? It prints the name of the current thread
> > to standard output. If you put one such transformer right before and one
> > right after your XSLT transform, it should print out two different
> > names.
> 
> Since I had that class lying around anyway, I thought I might as well
> check myself, and for me it works, it prints out something like this:
> Thread = PoolThread-4
> Thread = Thread-16
> 
> I'm using the same changes to cocoon.xconf like you.
> 
> Maybe the fact that you're seeing other behaviour is caused by a change
> in Xalan, or by an increased buffer size somewhere (less likely I
> think). Maybe try using Xalan 2.5.1 with Cocoon 2.0 to see what that
> gives.
> 

I tried Xalan 2.5.1 with cocoon 2.0.3. It still streamed as expected.

Here is my 2.1 configuration:
- <checkEnvironmentExtension>
- <EnvironmentCheck version="$Revision: 1.20 $">
- <environment>
  <item key="version.DOM.draftlevel">2.0fd</item> 
  <item 
key="java.class.path">C:\j2sdk1.4.2_01\lib\tools.jar;C:\Programme\jakarta-tomcat-5.0.5_exist_0.9.2\bin\bootstrap.jar</item>
 
  <item key="version.JAXP">1.1 or higher</item> 
  <item key="java.ext.dirs">C:\j2sdk1.4.2_01\jre\lib\ext</item> 
  <foundJar desc="apis.jar-apparent.version" name="xml">xml-apis.jar 
present-unknown-version</foundJar> 
  <foundJar desc="apis.jar-path" 
name="xml">C:\Programme\jakarta-tomcat-5.0.5_exist_0.9.2\common\endorsed\xml-apis.jar</foundJar>
 
  <item key="version.xerces2">Xerces-J 2.4.0</item> 
  <item key="version.xerces1">not-present</item> 
  <item key="version.xalan2_2">Xalan Java 2.5.1</item> 
  <item key="version.xalan1">not-present</item> 
  <item key="version.ant">Apache Ant version 1.5.3 compiled on April 16 2003</item> 
  <item key="java.version">1.4.2</item> 
  <item key="version.DOM">2.0</item> 
  <item key="version.crimson">present-unknown-version</item> 
  <item 
key="sun.boot.class.path">C:\Programme\jakarta-tomcat-5.0.5_exist_0.9.2\common\endorsed\xalan-2.5.1.jar;C:\Programme\jakarta-tomcat-5.0.5_exist_0.9.2\common\endorsed\xercesImpl-2.4.0.jar;C:\Programme\jakarta-tomcat-5.0.5_exist_0.9.2\common\endorsed\xml-apis.jar;C:\j2sdk1.4.2_01\jre\lib\rt.jar;C:\j2sdk1.4.2_01\jre\lib\i18n.jar;C:\j2sdk1.4.2_01\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_01\jre\lib\jsse.jar;C:\j2sdk1.4.2_01\jre\lib\jce.jar;C:\j2sdk1.4.2_01\jre\lib\charsets.jar;C:\j2sdk1.4.2_01\jre\classes</item>
 
  <item key="version.SAX">2.0</item> 
  <item key="version.xalan2x">Xalan Java 2.5.1</item> 
  </environment>
  <status result="OK" /> 
  </EnvironmentCheck>
  </checkEnvironmentExtension>

Regards, Hauke Ernst

> --
> Bruno Dumon                             http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> [EMAIL PROTECTED]                          [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to