[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XALAN-FOP Performance and Push-Pull Processing


Subject: Re: [xsl] XALAN-FOP Performance and Push-Pull Processing
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jan 2005 17:07:15 GMT

   I have been searching for a thread related to performance with the two
   types of programming styles.  MK's books give me some insight as to what
   types of overhead can occur in an XSL Transformation, but I need a little
   more empirical evidence related to XALAN.  Can anyone point me to a thread
   or offer an opinion that points to performance impacts/issues, specifically
   when employing each programming style? 


I don't really see it as a performance issue: it's more a matter of
getting different output. If you want the structure of your output to be
determined by the structure of the input (as common when formatting a
textual document) you want a push style. If you want the structure of
the output to be determined by the structure of your stylesheet (as
common when generating reports from database queries and other
table structed data) you want a pull style.

    Also, if Push is used within a
   template rule as well as Pull, does the XSL Template revert to the same
   rules used for Push?

There are no separate rules. Or any clear distinction between the
styles, push style  tends to have lots of templates each calling
apply-templates so that at run time they may be called in any order,
depending on the document. pull style tends to have fewer, or in the
extreme case, just one template, matching the root of the document.
There are of course many styles which fall between these extremes (which
is where most stylesheets live in practice).

   Thanks,

   Curtis Fisher


David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread
Keywords
xsl