Subject: RE: access attribute in the parent element.
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 22 Jun 2000 11:57:37 +0100
|
> 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
|