Re: [xsl] Matching Attribute in xsl:applly-template

Subject: Re: [xsl] Matching Attribute in xsl:applly-template
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 28 Mar 2002 14:53:56 +0100
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@xxxxxxxxx
www.virbus.de


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread