[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: avoiding repeated items
Hi Ani Lopez, This is the way I solved a simular problem. <xsl:for-each select="poetas/autor"> <xsl:choose> <xsl:when test="not(.=preceding::autor)"> <xsl:value-of select="."/> </xsl:when> </xsl:choose> </xsl:for-each> Hope that is helpful, Tim Watts -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Aniceto López Sent: Friday, 2 March 2001 4:56 AM To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: avoiding repeated items 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> I need to list all the "autor" without repeat the ones repeated in the xml file, just like this: anonimo arcipreste de hita becquer campoamor dario encina espronceda garcilaso gongora lope thanks for helping Ani Lopez XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|