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]

access attribute in the parent element.


How can i get the value of an attribute from a parent
element/from an element in the top of the hirarchy.

<NAME first="john" last="mike">
   <COUNTRY><COUNTRY>
</NAME>

<xsl:templte match "NAME">
   <xsl:apply-templates/>
</xsl:template>

<xsl:template match="COUNTRY">
 <xsl:value of select=??, i want value of first>
</xsl:template?           

Regards.


__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com


 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]