[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] breaking sorted material into subsections
Currently have this in my xsl: <xsl:for-each select="//index"> <xsl:sort select="@entry"/> <p><a href="{../@location}"><xsl:value-of select="@entry"/></a></p> </xsl:for-each> this correctly sorts my index by @ entry, but I can't figure out a clean way to insert section headings for each letter of the alphabet. I.e., my output is like: Aaaa Abb Az Ba Bz Ca but what I want is something like: <H2>A</H2> Aaaa Abb Az <H2>B</H2> Ba Bz <H2>C</H2> Ca Can someone point me in the right direction... Thanks. Eric 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
|