[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: duplicate elimination
Ihe Onwuka ihe.onwuka@xxxxxxxxx wrote:
I set about eliminating duplicate lines (where I have defined a duplicate line as one where the first title element matches that of some other line. Use the "=" operator and all preceding sibling line elements: <xsl:template match="line[title[1] = preceding-sibling::line/title[1]]"/> <xsl:template match="line"> <xsl:apply-templates select="title[1]"/> </xsl:template>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|