Re: [xsl] Handling Duplicate Lines in XSL

Subject: Re: [xsl] Handling Duplicate Lines in XSL
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Wed, 29 Oct 2003 23:09:50 +0100
Jens Serna wrote:

I have an XML file with multiple rows which are the same:

Cust1 443 West
Cust1 443 West
Cust1 443 West

Is there any way to suppress the second or third row if it is the
> same as the previous one?

Yes, either select the elements properly:
 <xsl:apply-templates select="CUST[not(.=previous::CUST)]"/>
or look up "Muenchean Grouping" in the XSL FAQ or your XSLT
book (you do have a book, do you?).

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread