I've just written a little demo application to demonstrate the problem.

First, compile the file TestGenerator.
Add it to the sitemap:

<map:generator name="test" src="TestGenerator" label="content" pool-max="32"
pool-min="16" pool-grow="4"/>

Put the simple xsl into the xsl subdir.


Add the following to the pipelines:

                      <map:match pattern="test">
                       <map:generate type="test"/>
                       <map:transform src="xsl/test.xsl"/>
                     <map:serialize type="html"/>
                      </map:match>

Call the pipeline.

The result should appear when the last System.out ("Finished") is reached.

If you comment out the line

<map:transform src="xsl/test.xsl"/>

a part of the result should appear while processing (depends on the buffer).

You can change the number of generated elements if you reach "Finished"
before the output can be seen.

I used the patch from Joerg Henne to set the buffer to 1. For me the result
appears after about 20 elements if I comment out the xslt transformation.
When the xslt transformation take place, I have to wait until "Finished".

TestGenerator.java

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
   <xsl:output method="html" indent="no"/>

   <xsl:template match="root"> 
<html>
 <head>
  </head>
 <body bgcolor="#ffffff">
  Processing...
  <xsl:apply-templates/>
 </body>
</html>
	</xsl:template>  
 
<xsl:template match="hr">
  hr: <hr/>
</xsl:template>


   </xsl:stylesheet>

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

Reply via email to