Subject: Re: [xsl] Using Include File.. From: Jeff Kenton <jkenton@xxxxxxxxxxxxx> Date: Tue, 16 Apr 2002 10:36:22 -0400 (EDT) |
The basic question here is whether the 50 templates you include are all going to be used. If so, there's no reason not to include them. If most of them won't be used, you take two kinds of performance hit. First, the XSLT processor will spend extra time compiling/pre-processing all the templates. Second, while running, any xsl:apply-templates command will spend time trying to match against the extra templates that have a "match" attribute. On the other hand, if the extra templates mostly have "names", and are meant to be used with xsl:call-template commands, you probably won't pay much by having them hanging around. --jeff On Tue, 16 Apr 2002, Ramesh B wrote: ..Hi, .. Can somebody explain the Performance issues ..related with using <xsl:include>.I am Using Xalan ..Processor.In my Application scenario I had to choose ..between two options .. ..1. Using a Included file which contains Template ..defenition for around 50 Templates.This option is ..looked after because of code Reusability.I can use ..same Template defenition across files .. ..2.Don't Use Include File.Directly put the Template ..defenition for each file.Don't go for Reusability. .. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using Include File.., Ramesh B | Thread | RE: [xsl] Using Include File.., Michael Kay |
[xsl] plain txt output tips, Nathan Shaw | Date | Re: [xsl] plain txt output tips, David Carlisle |
Month |