Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Need help resorting

From: XMLallUPinMYeye@-----------.---------.---
To: 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>
> 
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent