[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: accessing parent element in if clause
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 20 Jan 2005 14:13:04 +0200
Hi,

>     <xsl:if test="parent::node()=definition">

The unabbreviated expression for the above is

  parent::node() = child::definition

i.e. is there a child "definition" element whose string value is the same as
the parent's string value. You want

  parent::definition

Cheers,

Jarno

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member