Re: [xsl] Almost identical templates

Subject: Re: [xsl] Almost identical templates
From: George Cristian Bina <george@xxxxxxx>
Date: Thu, 01 Jul 2004 12:03:26 +0300
>    <xsl:template match="*">
>        <div class="section">
>            <span class="ref">***MAGIC***</span><br />
>            <xsl:apply-templates select="*|text()" />
>        </div>
>    </xsl:template>
>
> Where ***MAGIC*** picks out the tag name that it matched on?

<span class="ref"><xsl:value-of select="name()"/></span><br />

Best Regards,
George
-----------------------------------------------
George Cristian Bina
<oXygen/> XML Editor & XSLT Editor/Debugger
http://www.oxygenxml.com


Current Thread