[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] change xslt processing order


Subject: Re: [xsl] change xslt processing order
From: Navin Patel <navin98@xxxxxxxxx>
Date: Tue, 4 Oct 2011 20:16:24 +0100

Brandon,

Thanks for your suggestion, but I do want to output the
DeliveryAddress and Consignment after a Parcel even if one parcel
follows another its just that I want output the DeliveryAddress and
Consignment after the last parcel in a group of parcels i.e.

Expected out:
JD0002210800004322
7255
044375530
JD0002210800004323
7256
044375531
JD0002210800004324
JD0002210800004325
7257
044375532

With the suggestion below I don't get any output for the
DeliveryAddress and Consignment for the last two parcels in the XML.

The "test" on the <xsl:if> would be
"not(following-sibling::*[1][self::Parcel])".  This would output the
DeliveryAddress and Consignment after a Parcel only if it was not
immediately followed by another Parcel.

JD0002210800004322
7255
 044375530
JD0002210800004323
7256
044375531
JD0002210800004324
JD0002210800004325

Thanks

Navin


Current Thread