xsl-list
[Top] [All Lists]

RE: Parent

2004-09-08 06:03:52

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


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