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]

RE: access attribute in the parent element.


> How can i get the value of an attribute from a parent
> element

select="../@first"

Mike Kay

> 
> <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?           
> 


 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]