[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Ihe Onwuka ihe.onwuka@xxxxxxxxx wrote:
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.
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] | 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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Fwd: When you give generate-i, Ihe Onwuka ihe.onwuk | Thread | [xsl] Trouble passing XSL function , C. Edward Porter cep |
[xsl] Fwd: When you give generate-i, Ihe Onwuka ihe.onwuk | Date | [xsl] Trouble passing XSL function , C. Edward Porter cep |
Month |