I believe that you could use such as:
<xsl:when test="ancestor::step[2]">
Remember that ancestor has reverse axis, see MK XSLT 2nd edition pp.
363-367 for axis descriptions (or another source).
For one with three or more step ancestors, you could use something like:
<xsl:count(ancestor::step)"/> for the number after your class.
This presumes that you don't have something like
step/something/step/list.
Hope this helps
Ragulf Pickaxe :-)
Is there something similar to <xsl:when test="grandparent::step"> or
<xsl:when test="parent::parent::step"> ?
Thanks,
Cas
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--