xsl-list
[Top] [All Lists]

Re: find out if my parent is the last sibling

2004-08-28 15:24:20
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



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