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]
Other format: [Raw text]

RE: match on attribute anywhere



><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


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