I am converting a series of old msxsl2 scripts to xsl 1.0, or at
least rewriting them with the originals as a guidline.
The last script in the one I am working on at the moment is similar
to this (in layout)
<xsl:template match="*[(_at_)CHGLVL='1'][. != context(-2)] |
LIST/ITEM[(_at_)CHGLVL='1'][. != context(-3) |
PERS/REEQ[(_at_)CHGLVL='1'][. != context(-3) |
.... and so on for about 20 similar items... >
<img class="changebar" src="../images/bar.gif"/>
Its fairly easy to see what it is doing but how can I do a similar
thing in xsl 1.0? (ie without the 'context' function)
there are about 20 named sections that it checks so putting that code
everywhere else it needs to be would be excessive and obviously
without the context() it will just infinitely recurse.
any ideas how I can create the same effect?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list