Subject: Re: rendering a treeview *hairy problem*
From: "Mattias Konradsson" <preacher@xxxxxxxxxxx>
Date: Thu, 1 Feb 2001 12:06:44 +0100
|
> It seems you want something like
>
> <xsl:for-each select="ancestor::*"> ... </xsl:for-each>
> visits all ancestors
>
> <xsl:for-each select="ancestor::post"> ... </xsl:for-each>
> visits only post ancestors
>
> Cheers,
> Oliver
I tried this, but it seems it only adds the lines to the immediate parent
and not recursively up each parents parent (uhh, confusing)
<xsl:for-each select="ancestor::post">
<xsl:choose>
<xsl:when test="following-sibling::post">
<img align="middle" src="/community/images/straight.gif" alt=""
border="0"/>
</xsl:when>
<xsl:otherwise>
<img align="middle" src="/community/images/blank.gif" alt=""
border="0"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
mvh
---
Mattias Konradsson
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|