<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="JavaScript" >

<xsl:key name="GROUP" match="item" use="supplier"/>

<xsl:template match="/">

<xsl:for-each select="root/item[generate-id(.)=generate-id(key('GROUP',supplier))]">
<xsl:sort select="totale_finale" data-type="number" order="ascending" />

<xsl:variable name="ok_op" select="supplier" />
<xsl:variable name="price_min" >
     <xsl:for-each select="totale_finale">
    <xsl:if test="position() = 1"> 
        <xsl:value-of select="."/> 
      </xsl:if> 
</xsl:for-each>
</xsl:variable>

<xsl:value-of select="$ok_op"/>&#160; <xsl:value-of select="$price_min"/><BR/>

</xsl:for-each>

</xsl:template >

</xsl:stylesheet> 