RE: [xsl] alternating bg colour in nested data

Subject: RE: [xsl] alternating bg colour in nested data
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 17 Jan 2002 08:44:48 -0000
> 
> This is actually a good use for xsl:for-each --
> 
> <xsl:for-each select="ancestor::*">
>    <xsl:text>.</xsl:text>
> </xsl:for-each>
> 
And in XPath 2.0 you can replace this with

<xsl:value-of select="pad-string('.', count(ancestor::*))"/>

Mike Kay

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


Current Thread