This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: alternating bg colour in nested data


> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]