[Home] [By Thread] [By Date] [Recent Entries]
Tempore 22:28:52, die 01/21/2005 AD, hinc in
xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit David Laurie
<dlaurie@xxxxxxxxxxx>:
Hello all,Hi, I don't see any duplicates in your xml, maybe its just a small part of the real xml? Or do you consider the 'Climate in Alberta' series as duplicates? I'll assume you mean with duplicates "maptitles that are stringwise indentical". With tke keys: <xsl:key name="maps" match="part/chapters/mapunits/maps/maptitle" use="substring(., 1, 1)"/> <xsl:key name="maps" match="part/chapters/mapunits/maps/maptitle" use="."/> ... <xsl:for-each select="key('maps', $firstletter)[generate-id(.) = generate-id(key('maps', .)[1])]"> <xsl:sort/> <div class="mapTitle"> <a> <xsl:value-of select="."/> </a> </div> </xsl:for-each> ... using the 'preceding' axis: <xsl:value-of select="self::maptitle[not(.=preceding::maptitle)]"/>
|

Cart



