This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
multi-mode definitions
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] multi-mode definitions
- From: "Dave Gomboc" <dave at cs dot ualberta dot ca>
- Date: Wed, 11 Jul 2001 16:19:33 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
I have something like...
<xsl:template match="A" mode="x">
...
...
<xsl:apply-templates select="B" mode="x"/>
<xsl:apply-templates select="C" mode="x"/>
...
...
</xsl:template>
<xsl:template match="A" mode="y">
...
...
<xsl:apply-templates select="B" mode="y"/>
<xsl:apply-templates select="C" mode="y"/>
...
...
</xsl:template>
I would like to do better than cut, paste, and replace. I suppose I
could pass a parameter around instead of using modes. What is standard
practice?
Dave
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list