[exprla-devel] Re: [XPL] The structure of classes in XPL
Status: Pre-Alpha
Brought to you by:
xpl2
|
From: reid_spencer <ras...@re...> - 2002-01-31 09:03:08
|
--- In xpl-dev@y..., cagle@o... wrote:
Jonathon,
Not wanting to reiterate your arguments (which are quite nice, by the
way) I would argue that an XSLT document is not necessarily one
transformation. Specifically, if you allow for named templates, then
the correlation between an XSLT document and a set of class methods
becomes somewhat stronger, especially if you utilize the <xsl:import>
command.
<xsl:stylesheet ...>
<xsl:import href="subfilters.xsl"/>
<xsl:param name="method_name"/>
<xsl:template match="/">
<xsl:call-template name="{$method_name}">
<xsl:with-param name="data" select="."/>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
In this way, the parameter method_name effectively controls
which "method" is called. This is effectively your proxy stylesheet.
More tomorrow, when I'm a little more cogent ....
-- Kurt Cagle
--- End forwarded message ---
|