[xsl] Possibilities for XSL reuse/structured programming?

Subject: [xsl] Possibilities for XSL reuse/structured programming?
From: "peter verhaar" <peter.verhaar1@xxxxxxxxx>
Date: Tue, 16 Dec 2008 14:28:18 +0100
Hello,

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).

Example:

--- Employee.xsl --
<xsl:variable name="filter" select="employee"/>
?? Import and run Person.xsl ??

--- Student.xsl --
<xsl:variable name="filter" select="student"/>
?? Import and run Person.xsl ??

--- Person.xsl --
here the variable is read e.g;
Number of persons: <xsl:value-of select="count(Person[...@type=$filter
....]....)/>


Thanks!

Current Thread