<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:msxsl="urn:schemas-microsoft-com:xslt" 
  exclude-result-prefixes="msxsl" 
  xmlns:ddwrt2="urn:frontpage:internal"> 
<xsl:output method="html" indent="yes"/> 

<xsl:template match="dsQueryResponse" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"> 
  <div class="resourcesList" > 
      <xsl:apply-templates select="/dsQueryResponse/Rows/Row"/> 
  </div>  
</xsl:template> 

<xsl:template match="Row">
    <xsl:if test="position()=1">
    <span class="resourceLink"><xsl:value-of select="@Category" disable-output-escaping="yes" /></span><br/>
    </xsl:if>
    <a class="resourceLink" href="{substring-before(substring-after(@URL,'&gt;'),'&lt;')}"> 
     <xsl:value-of select="@Title" disable-output-escaping="yes" />
    </a><br/>
</xsl:template>

</xsl:stylesheet>
