This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]