Thread: XSL-Problem

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Germany
    Posts
    8
    Rep Power
    0

    Unhappy XSL-Problem


    Hello !

    I have a problem with XSL :
    I want to know the name of the parent-node, for example :

    <xsl:if test="name(parent)='foobar'">...</xsl:if>

    But it doesn't work. I tried parent, name, local-name, foobar, 'foobar', xsl:when, ... Nothing works properly.

    I hope, someone helps me !!!


    CU,

    d0n
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Germany
    Posts
    8
    Rep Power
    0
    It was so easy... It is :

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

    Now I gave myself the answer !!

IMN logo majestic logo threadwatch logo seochat tools logo