Re: [xsl] Sort by depth of leaf-nodes

Subject: Re: [xsl] Sort by depth of leaf-nodes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 6 Dec 2002 14:15:27 GMT

	<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


Current Thread