RE: Testing position of parent

Subject: RE: Testing position of parent
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 25 Oct 2000 17:02:48 +0100
>    if the parent is an <LG> which has first position among its
>    siblings, then do X, otherwise do Y

Try test="parent::lg[not(preceding-sibling::*)]"
> 
> Here's what I thought would be the expression to accomplish that:
> 
>    <xsl:when test="parent::lg[position()=1]">

This looks at its position among all the parent::lg elements of the current
node

Mike Kay 


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


Current Thread