[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Limitations of including/importing number of styl

Subject: Re: Limitations of including/importing number of stylesheets into a stylesheets
From: Graydon <graydon@xxxxxxxxx>
Date: Mon, 29 Nov 2010 17:54:19 -0500
Re:  Limitations of including/importing number of  styl
On Mon, Nov 29, 2010 at 09:11:31AM +0000, Michael Kay scripsit:
> The only case I've seen where this caused serious performance
> trouble was when one module was imported (not included) into many
> others, all at different import precedence. I've since fixed Saxon
> so this case is no longer a problem, but you might not be so lucky
> with other products. Generally, try to organize your code so each
> module is included/imported only once (the effect is global). Apart
> from that, I don't think you should have any concerns.

This brings up a further question.

I'm in the habit, when grouping XSLT templates into modules, of
importing any dependencies among the other files so the individual file
can be validated by itself.

The main stylesheet file, the one that's actually called when processing
the content, uses include, and there's a chain of includes going back
from the most specific templates in the main stylesheet file to the most
general in the first stylesheet.

Is this practice likely to be a performance hit?  I try hard to make it
a linear chain of dependencies, but this doesn't always work.

-- Graydon

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.