Re: [xsl] Fwd: When you give generate-id a nodeset

Subject: Re: [xsl] Fwd: When you give generate-id a nodeset
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 5 Nov 2015 14:13:02 -0000
Ihe Onwuka ihe.onwuka@xxxxxxxxx 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]  |
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.

Current Thread