xsl-list
[Top] [All Lists]

Re: [xsl] Comparing direct ancestors

2012-05-28 13:44:59
just change the second key to



<xsl:key name="ce" match="*[not(self::p|self::t)]/change-end"
use="generate-id((preceding::*[self::p|self::t] except preceding::*[self::p|self::t]//*[self::p|self::t])[last()])"/>


so that nested elements are not counted and so you pick up the last element _end_.

David

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