[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Combining xsl:keys
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)]"/>
|
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
|