[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: alternating bg colour in nested data
Andrew,
This is actually a good use for xsl:for-each -- <xsl:for-each select="ancestor::*"> <xsl:text>.</xsl:text> </xsl:for-each> Tune the select expression to your needs, e.g. select="ancestor-or-self::*" (includes the current node in the count), "ancestor-or-self::node()" (includes the current node and root node), "ancestor::*[position() > 1]" to skip a level, etc. Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|