Re: [xsl] find out if my parent is the last sibling

Subject: Re: [xsl] find out if my parent is the last sibling
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sun, 29 Aug 2004 00:24:20 +0200
Jan Limpens wrote:
for the child it is easy to find out if it is the last in the row, <xsl:if test="position()=last()">*</xsl:if>

Well, this depends on context, I hope you are aware of this.


but how can a child know this about it's parent?

Perhaps <xsl:if test="not(../following-sibling::*)">...</xsl:if>

J.Pietschmann

Current Thread