[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Walking the tree


Subject: [xsl] Walking the tree
From: "Marcus Andersson" <marcan@xxxxxxx>
Date: Thu, 14 Aug 2003 14:48:25 +0200

Hi

I have this parameter called "the-node". I want to make a choice based on wheter "the-node"'s parent is the last child to it's parent ("the-node"'s grandparent). How do I do this (if you understand the question)? 

<xsl:template name="theTemplate">
 <xsl:param name="the-node"/>
 <xsl:choose>
  <xsl:when test="[what shall I put here???]">
   ...
  </xsl:when>
  <xsl:otherwise>...</xsl:otherwise>
 </xsl:choose>
</xsl:template>

Thnx

/Marcus

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread