Subject: RE: match on attribute anywhere
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Wed, 13 Feb 2002 13:25:53 +0100
|
><xsl:template match="@mark">
> <span style="color:#FF0000">
> <xsl:apply-templates select/>
> </span>
></xsl:template>
>and apply it using:
><xsl:apply-templates select="@mark|node()"/>
couldn't you just do
<xsl:template match="@mark" priority="2">
<span style="color:#FF0000">
<xsl:apply-templates/>
</span>
</xsl:template>
and apply it using <xsl:apply-templates/>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|