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

Re: include multiple utility modules vs one larger one

Subject: Re: include multiple utility modules vs one larger one?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 10 Mar 2009 22:37:46 -0700
Re:  include multiple utility modules vs one larger one
So, what is bad with circular references from <xsl:import> directives?
Every compliant XSLT processor should deal with this -- it is not an
error.

As for the technique of importing one module which then imports a
number of module, this is something well-known. See for example this:

http://fxsl.cvs.sourceforge.net/viewvc/fxsl/fxsl-xslt2/f/func-standardXpathFu
nctions.xsl?revision=1.9&view=markup


--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play




On Tue, Mar 10, 2009 at 2:16 PM, frank johnson <fjhnsn@xxxxxxxxx> wrote:
> Hello,
>
> We have coded a number of XSL functions (about 60) used by a series of
> XSL stylesheets (about 15). We've put all the functions into one large
> common XSL which is then imported into all the stylesheets.
>
> This has the effect of including much more into a given XSL than is
> generally used, but was done to (1) ease the problem of knowing which
> modules to import into which XSLs and (2) avoid posssible circular
> references which could result from nested imports. Functionally, our
> approach has seemed to work well so far.
>
> Is this considered a best practice or have we implemented an anti-best
> practice? Aside from an increase in compile time, is there any
> significant penalty or downside to this approach?
>
> Thanks in advance.
>
>



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play

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.