Subject: Re: [xsl] avoiding repeated items From: cutlass <cutlass@xxxxxxxxxxx> Date: Thu, 01 Mar 2001 18:42:15 +0000 |
hi: simple question: how to avoid repeated elements? in a xml file like this <poetas> <autor>anonimo</autor> <autor>arcipreste de hita</autor> <autor>becquer</autor> <autor>becquer</autor> <autor>becquer</autor> <autor>campoamor</autor> <autor>dario</autor> <autor>encina</autor> <autor>encina</autor> <autor>encina</autor> <autor>espronceda</autor> <autor>garcilaso</autor> <autor>gongora</autor> <autor>gongora</autor> <autor>gongora</autor> <autor>lope</autor> </poetas>
<xsl:variable name="uniquelist" select="//autor[not(.=following.autor]"> <xsl:for-each select="$uniquelist"> <xsl:value-of select="."/> </xsl:for-each>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] avoiding repeated items, Aniceto López | Thread | RE: [xsl] avoiding repeated items, Tim Watts |
RE: [xsl] XML to WML/CHTML example , Tapan Nanawati | Date | RE: [xsl] ANNOUNCE: Petition to wit, Chris Bayes |
Month |