RE: [xsl] accessing parent element in if clause

Subject: RE: [xsl] 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