xsl-list
[Top] [All Lists]

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

2008-12-16 08:43:59

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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>