This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: rendering a treeview *hairy problem*
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] rendering a treeview *hairy problem*
- From: "Mattias Konradsson" <preacher at fragzone dot se>
- Date: Thu, 1 Feb 2001 12:06:44 +0100
- References: <200102011027.LAA09916@mail.informatik.hu-berlin.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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