xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] rendering a treeview *hairy problem*


Subject: Re: [xsl] 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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor