<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xt="http://www.jclark.com/xt"
		version="1.0">

<xsl:template match="list">
 <xsl:variable name="sorted">
   <xsl:for-each select="item">
     <xsl:sort/>
     <xsl:copy-of select="."/>
   </xsl:for-each>
 </xsl:variable>
 <html><body><ul>
   <xsl:if test="function-available('xt:node-set')">
     <xsl:for-each select="xt:node-set($sorted)/item">
       <xsl:if test="not(following-sibling::item[1]=.)">
         <li><xsl:value-of select="."/></li>
       </xsl:if>
     </xsl:for-each>
   </xsl:if>
 </ul></body></html>
</xsl:template>

</xsl:stylesheet>
