xsl-list
[Top] [All Lists]

RE: accessing parent element in if clause

2005-01-20 05:13:04
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>