Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Need help resorting Need help resortingTo: NULL Date: 7/5/2005 3:04:00 PM I have a xsl sheet that gets 21 records sorted descending by date. What i'm looking to do is after the 21 records resort by title without out changing the 21 records, tables, rows, and column layout. Here my XSL file <xsl:template match="rss"> <table border="0" cellspacing="0" width="700"> <tr> <xsl:for-each select="item"> <xsl:sort select="substring(date, 9)" data-type ="number" order="descending"/> <xsl:sort select="month" data-type ="number" order="descending"/> <xsl:sort select="substring(date, 5, 3)" data-type ="number" order="descending"/> <xsl:if test="position() < 22"> <xsl:if test="position() = 4"><xsl:call-template name="newrow"></xsl:call-template></xsl:if> <xsl:if test="position() = 7"><xsl:call-template name="newrow"></xsl:call-template></xsl:if> <xsl:if test="position() = 10"><xsl:call-template name="newrow"></xsl:call-template></xsl:if> <xsl:if test="position() = 13"><xsl:call-template name="newrow"></xsl:call-template></xsl:if> <xsl:if test="position() = 16"><xsl:call-template name="newrow"></xsl:call-template></xsl:if> <xsl:if test="position() = 19"><xsl:call-template name="newrow"></xsl:call-template></xsl:if> <xsl:call-template name="item"></xsl:call-template></xsl:if></xsl:for-each> </tr></table></xsl:template> <xsl:template name="newrow"> <tr></tr> </xsl:template> <xsl:template name="item"> <td width="228" height="194" class="photo" id="tableframe" MCFocusable="true"> <table height="140" cellSpacing="0" cellPadding="0" width="100" border="0"> <span class="nofocus"><tr> <td vAlign="center" align="middle"><xsl:value-of select="image" disable-output-escaping="yes"/> </td> </tr></span></table><div class="text3"><nobr><xsl:value-of select="title"/></nobr></div></td> <td height="20"></td> </xsl:template> </xsl:stylesheet> Thanks | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
