Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Need help resorting [Thread Next] Re: Need help resortingTo: NULL Date: 7/18/2005 2:35:00 PM This should be along the lines of what you need. <table> <tr>title<td></td>date</td></tr> <xsl:for-each select="rss/item"> <xsl:sort data-type="text" select="title" order="ascending"/> <tr><td><xsl:value-of select="title"/></td><td><xsl:value-of select="date"/></td></tr> </xsl:for-each> </table> "Baquanb@y..." wrote: > with the current xsl file i get 21 records out of 200 sorted descending > by date. I want to resort the same 21 records by title when it's done. > I hope that is more clear. > > > > First Results > title date > B Jul 3, 2002 > A Jun 19, 2002 > C Jan 16, 2002 > > Second Results > title date > A Jun 19, 2002 > B Jul 3, 2002 > C Jan 16, 2002 > > > <?xml version="1.0"?> > <?xml:stylesheet type="text/xsl" href="trailer.xsl"?> > <rss> > <item> > <title>A</title> > <description>A</description> > <image>JPG</image> > <month>7</month> > <date> Jun 19, 2002 </date> > <link>a href</link> > </item> > <item> > <title>B</title> > <description>B</description> > <image>JPG</image> > <month>8</month> > <date> Jul 3, 2002 </date> > <link>a href</link> > </item> > <item> > <title>C</title> > <description>C</description> > <image>JPG</image> > <month>1</month> > <date> Jan 16, 2002 </date> > <link>a href</link> > </item> > </rss> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
