[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] ordering and iteration problem
Subject: Re: [xsl] ordering and iteration problem From: Mark Nahabedian <naha@xxxxxxxxxx> Date: Fri, 16 Nov 2001 10:51:09 -0500 |
It was a pleasant suprise to see some of my code cited. Jeni Tennison writes: [...] > So I'd adapt the keys to include information about the parent > circuit-breaker-panel of the circuit-breaker, as follows: > > <xsl:key name="breakers-by-column" match="b:circuit-breaker" > use="concat(generate-id(parent::b:circuit-breaker-panel), > ':', @column)" /> > <xsl:key name="breakers" match="b:circuit-breaker" > use="concat(generate-id(parent::b:circuit-breaker-panel), > @row, ':', @column)" /> > > If a circuit-breaker-panel was given an ID of 'abc' then you could get > the circuit breaker in the first cell in the first row with: > > key('breakers', 'abc:1:1') I take it that the generate-id() is needed because there is no other way to test for node identity? Rather than using concat() to generate a compound key, would it also work to use the same key as before but then select from the resulting node-set only the circuit-breaker with the right parent? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] ordering and iteration pr, Jeni Tennison | Thread | Re: [xsl] ordering and iteration pr, Jeni Tennison |
RE: [xsl] sum function, Hesselberth, Jan | Date | RE: [xsl] Reformatting character st, Burisch, Curtis |
Month |