This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: alternating bg colour in nested data
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 17 Jan 2002 08:44:48 -0000
- Subject: RE: [xsl] alternating bg colour in nested data
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> 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