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

Re: [xsl] Break functionality in XSL


Subject: Re: [xsl] Break functionality in XSL
From: Anil Kumar Veeramalli <anil.v@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 02 Nov 2009 20:03:00 +0530

in my xml file, I have some duplicate records, so I want to consider only first records. other duplicate records simply want to ignore. That is the reason I need break functionality.

Thanks,
Anil


There is no xsl:break and xsl:for-each is not a loop. You might simply want to put your condition into a predicate in the select attribute e.g.


<xsl:for-each
select="TABLE[@NAME='XLATTABLE_EMPL_STATUS']/ROWS/ROW/COLUMN[@NAME='STATUS'][. = 'A']">


Current Thread
Keywords
xml