This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: match on attribute anywhere
- From: "Bryan Rasmussen" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 13 Feb 2002 13:25:53 +0100
- Subject: RE: [xsl] match on attribute anywhere
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
><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