This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
breaking sorted material into subsections
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>
- Subject: breaking sorted material into subsections
- From: Eric Taylor <Eric dot Taylor at RealPage dot com>
- Date: Fri, 15 Sep 2000 12:45:03 -0500
- Reply-To: xsl-list at mulberrytech dot com
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