This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Matching Attribute in xsl:applly-template
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 28 Mar 2002 14:53:56 +0100
- Subject: Re: [xsl] Matching Attribute in xsl:applly-template
- References: <20020328133143.25355.qmail@web13604.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Ramesh B wrote:
> Hi,
> Can i give an attribute in xsl:apply-template's
> select Value?
>
> For Eg:
> <xsl:apply-template select="@name"/>
>
> Regards,
> Ramesh
Of course! You only need a still a template matching on @name or
attributes in common:
<xsl:template match="@name">
<!-- do what you want -->
</xsl:template>
or
<xsl:template match="@*">
<!-- for all attributes -->
</xsl:template>
Regards,
Joerg
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list