Here is the first level of grouping
It uses muenchian grouping
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.o
<xsl:output omit-xml-declaration="yes"
<xsl:key name="it-yr" match="item" use="substring-after(subst
<xsl:template match="/rss">
<xsl:for-each select="channel/item[gener
<xsl:sort select="substring-after(su
<h1><xsl:value-of select="substring-after(su
<div class="date"><xsl:value-of
</div>
<div class="headline">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="description"/>
</xsl:attribute>
<xsl:if test="contains(substring(m
M-There is a slash in the month
</xsl:if>
<br /><xsl:if test="contains(substring(m
D-There is a slash in the day
</xsl:if>
</xsl:element>
</div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Main Topics
Browse All Topics





by: GertonePosted on 2007-12-13 at 09:34:45ID: 20465958
you would better use substring-before and substring-after instead of simple substring,
because 10 and 8 (october and August) have different string-lengths
You ould use a key for the sorting and grouping bit