Subject: RE: FW: [xsl] Siblings From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx> Date: Tue, 14 Dec 2004 07:13:36 +0000 |
From: "Karl Stubsjoen" <karl@xxxxxxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: FW: [xsl] Siblings Date: Tue, 14 Dec 2004 11:53:58 -0700
Woops, correction to 2nd "IF the offset were" result below: should result in "GRAPE", corrected with [GRAPE] below.
-----Original Message----- From: Karl Stubsjoen [mailto:karl@xxxxxxxxxxxxxxxxxxxx] Sent: Tuesday, December 14, 2004 11:49 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Siblings
I need to offset a sibling match for an offset of X. Example:
<elements> <element item="1">APPLE</element> <element item="2">ORANGE</element> <element item="3">GRAPE</element> <element item="4">WATERMELON</element> <element item="5">CRANBERRY</element> </elements>
If the offset were 0, then the result would be "APPLE", if the offse were 2,
then the result would be "ORANGE" -correction- [GRAPE].
The template is always applied in order of the item, but the look up is based on this offset value.
So, the big challenge: if the current item was 5 and the offset was 2, then
the result would be "ORANGE".
I am not sure whether I have understood it clearly, but what about using the following :-
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
FW: [xsl] Siblings, Karl Stubsjoen | Thread | RE: FW: [xsl] Siblings, Karl Stubsjoen |
RE: [xsl] sum() function giving str, Arun Sinha | Date | RE: [xsl] sum() function giving str, Jarno.Elovirta |
Month |