[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Parent
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
|