xsl-list
[Top] [All Lists]

Re: Sort by depth of leaf-nodes

2002-12-06 07:15:27


        <xsl:template match="Concat">
                        <xsl:for-each select="(.//*[not(*)])">  
 <xsl:sort data-type="number" select="-count(ancestor::*)"/> 
<xsl:if test="position()=1">
                                <xsl:value-of select="name()"/> 
</xsl:if>
                        </xsl:for-each>         
        </xsl:template>

probably:-)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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