This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

multi-mode definitions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]