xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] multi-mode definitions


Subject: [xsl] multi-mode definitions
From: "Dave Gomboc" <dave@xxxxxxxxxxxxxx>
Date: Wed, 11 Jul 2001 16:19:33 -0600

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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor