Re: [xsl] How to test the parent name

Subject: Re: [xsl] How to test the parent name
From: "Vyacheslav Sedov" <vyacheslav.sedov@xxxxxxxxx>
Date: Sat, 16 Feb 2008 11:42:07 +0300
<xsl:if test="parent::tag-name">

On Sat, Feb 16, 2008 at 10:35 AM, Mansour <mansour77@xxxxxxxxx> wrote:
> I am trying to test the name of the parent.
>
>  <xsl:test if="name(parent::*)='some-tag'">direct descendant</xsl:test>
>
>  If I do this:
>  <xsl:value-of select="name(parent::*)" />
>  Then I get the name of the parent output correctly, but when putting it
>  in a test element, it does not.
>  Why ? What do I do to perform the test ?

Current Thread