<?xml version="1.0"?>

<!-- XSLT style sheet for the uiListing control. 
     Besides the columns from the XML source It generates a column with the record number (#). -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no"/>
<xsl:param name="imageUrl"></xsl:param>
<!-- <xsl:sort select="@*[name()=$sortby]"/> -->
<!-- <xsl:number value="position()"/> -->
<!-- IT WORKS! <xsl:sort select="info[3]" data-type="number" order="descending"/> -->

  <xsl:template match="/">
    <table>
    <xsl:for-each select="//node">
	<xsl:sort data-type="number" order="descending"/>
	     <tr><td class="uiListItem"><xsl:number/></td><td class="uiListItem"><xsl:value-of select="@title"/></td>
		 <xsl:apply-templates select="info"/>
	     </tr>
	</xsl:for-each>
    </table>  	
  </xsl:template>

  
  <xsl:template match="info">
  	  <td class="uiListItem"><xsl:value-of select="."/></td>
  </xsl:template>
   
</xsl:stylesheet>

