This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: attribute question
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 17 Jan 2002 09:33:11 -0000
- Subject: RE: [xsl] attribute question
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I am currently using Xalan\Xerces. I am trying to match an
> attribute. See
> below:
>
> <rendition>
> <style color="#FFFFFF" border="#FFFFFF" ></style>
> </rendition>
>
> I am having difficulty matching the attribute. See below:
>
> <xsl:template match="@color>
> <xsl:attribute name="color">
> <!--Insert some value -->
> </xsl:attribute>
> </xsl:template>
>
Are you doing an apply-templates that will select the attribute for
matching, e.g.
<xsl:apply-templates select="@*"/>
?
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list