This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: value of parent tag
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] value of parent tag
- From: Goetz Bock <bock at blacknet dot de>
- Date: Wed, 23 May 2001 11:19:03 +0200
- References: <20010523104657.B31189@sokrates.mimuw.edu.pl>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Wed, May 23 '01 at 10:46, Daniel Bauke wrote:
> and i need to know 'key' value of a parent tag in each
> particular <cc/>. on the example in 1st and 2nd <cc/> it's
> "abc", in 3rd and 4th - "cde".
Have you tried:
<xsl:template match="cc">
...
<xsl:value-of select="../@key" />
...
</xsl:template>
Goetz.
PGP signature