[Home] [By Thread] [By Date] [Recent Entries]
Ihe Onwuka ihe.onwuka@xxxxxxxxx wrote:
Use the "=" operator and all preceding sibling line elements: When I use Saxon 6.5.5 against your posted input sample and the stylesheet <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="line[title[1] = preceding-sibling::line/title[1]]"/> <xsl:template match="line">
<xsl:apply-templates select="title[1]"/>
</xsl:template></xsl:stylesheet> I get the output <?xml version="1.0" encoding="utf-8"?>
La foto
La C:ltima parada (Lo peor de todo)
Polvo Eres
"7 dC-as al desnudo""7 vidas" which looks fine to me as for eliminating the duplicates.
|

Cart



