Ihe Onwuka ihe(_dot_)onwuka(_at_)gmail(_dot_)com wrote:
Given that generate-id given a nodeset only considers the first node I
thought wayhay that will work but it didn't until I included a first
node predicate explicitly like so.
xsl:key match="stuff | morestuff"
use="generate-id(ancestor::tr[predicate] |
ancestor::tr[not(predicate)]/preceding-sibling::tr[predicate][1])"/>
***
Should such be necessary?. Only tried it running version 1.0 on XSLTProc
preceding-sibling is a reverse axis so if you want the immediately
preceding sibling the you need the positional predicate [1]. The
generate-id is applied to the union which orders its operands in
document order.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--