Subject: Re: [xsl] duplicate elimination From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 1 Nov 2014 17:56:03 -0000 |
On Sat, Nov 1, 2014 at 5:26 PM, Martin Honnen martin.honnen@xxxxxx <mailto:martin.honnen@xxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:
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> --~--
One of the variations I had tried before. It does not work.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="line"> <xsl:apply-templates select="title[1]"/> </xsl:template>
<?xml version="1.0" encoding="utf-8"?> La foto La C:ltima parada (Lo peor de todo) Polvo Eres "7 dC-as al desnudo"
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] duplicate elimination, Ihe Onwuka ihe.onwuk | Thread | Re: [xsl] duplicate elimination, Ihe Onwuka ihe.onwuk |
Re: [xsl] duplicate elimination, Ihe Onwuka ihe.onwuk | Date | Re: [xsl] duplicate elimination, Ihe Onwuka ihe.onwuk |
Month |