RE: [xsl] Parent

Subject: RE: [xsl] Parent
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Wed, 8 Sep 2004 14:03:52 +0100
Hi,

You need to google for 'xpath axis' - a tutorial is here:
http://www.topxml.com/xsl/tutorials/intro/xsl4.asp.

To test for a parent, you use the parent axis:

<xsl:if test="parent::Test">
  ...
</xsl:if>

cheers
andrew


> Hi,
>
> ich have a xml file:
>
> <Test>
>   <Fall>
>   . ..
> and now i'm at node Fall and i wanna test if Fall is the
> child of Test. I tried <xsl:if test=".. = Test">, but i doesn't work.
>
> How can i achieve it?
>
> Thanks in advance
> Sven

Current Thread