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: Matching Attribute in xsl:applly-template


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


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