Re: rendering a treeview *hairy problem*
> 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format