xsl-list
[Top] [All Lists]

[xsl] Possibilities for XSL reuse/structured programming?

2008-12-16 08:32:21
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[(_dot_)(_dot_)(_dot_)(_at_)type=$filter
....]....)/>


Thanks!

--~------------------------------------------------------------------
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>