Hi again,
There is a slight error in my second predicate....
[generate-id(preceding-sibling::*[(_at_)level=$current-level])=$current-id]
should be
[generate-id(preceding-sibling::*[(_at_)level=$current-level][1])=$current-id]
That is: Check the _first_ previous sibling (counted backwards from
the current element) which is at the same level.
The other one just ensured that the there was such a previous sibling
- a tautology in this case.
You do not have to rewrite anything else.
Regards
Ragulf Pickaxe :-)
--~------------------------------------------------------------------
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>
--~--