<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>

  <xsl:text disable-output-escaping="yes">&lt;a class="resourceLink" target="_blank" href="</xsl:text>

  <xsl:value-of select="substring-before(substring-after(@URL,'&gt;'),'&lt;')" disable-output-escaping="yes"/>
  <xsl:text disable-output-escaping="yes">"&gt;</xsl:text>
     <xsl:value-of select="@Title" disable-output-escaping="yes" />
  <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>

  <br/>
</xsl:template>

</xsl:stylesheet>
