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

RE: [xsl] Possibilities for XSL reuse/structured programming?


Subject: RE: [xsl] Possibilities for XSL reuse/structured programming?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 16 Dec 2008 13:43:36 -0000

> Is it possible to have several XSL with specific code, which 
> all import/'run' a generic XSL? The idea is to minimize large 
> parts of (generic XSL) which are copied only for little 
> changes (in the code below only the 'filter' is different).

Yes, this is not only possible, it is common practice. Look for xsl:import
in your favourite XSLT textbook and it is bound to have examples of this
design pattern.

Michael Kay
http://www.saxonica.com/


Current Thread
Keywords