<!-- Intranet.xsl -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
    <html>
  <body>
  <table cellspacing="5" cellpadding="0">
    <tr>
      <td>URL</td>
      <td>Owner</td>
      <td>Secondary Owner</td>
      <td>Users</td>
      <td>Usage</td>
      <td>Theme</td>
    </tr>
          <xsl:for-each  select="Sites/Site" >
          <xsl:sort select="@Url" />
            <tr>
        <td>
                <xsl:element name="a">
                  <xsl:attribute name="href">
                    <xsl:value-of select ="@Url" />
                  </xsl:attribute>
                  <xsl:value-of select ="@Url" />
                </xsl:element>
                </td>
        <td>
                    <xsl:value-of select ="@Owner" />
                </td>
        <td>
                  <xsl:value-of select ="@SecondaryOwner" />
                </td>
        <td>
                <xsl:element name="a">
                  <xsl:attribute name="href">
                    <xsl:value-of select ="@Url" />
                    <xsl:text>/_layouts/1033/user.aspx</xsl:text>
                  </xsl:attribute>
                  <img src="@Url/_layouts/images/allusr.gif" border="none" />
                </xsl:element>
                </td>
        <td>
                <xsl:element name="a">
                  <xsl:attribute name="href">
                    <xsl:value-of select ="@Url" />
                    <xsl:text>/_layouts/1033/UsageDetails.aspx</xsl:text>
                  </xsl:attribute>
                  <img src="_layouts/images/icaspx.gif" border="none" />
                </xsl:element>
                </td>
        <td>
                <xsl:element name="a">
                  <xsl:attribute name="href">
                    <xsl:value-of select ="@Url" />
                    <xsl:text>/_layouts/1033/themeweb.aspx</xsl:text>
                  </xsl:attribute>
                  <img src="_layouts/images/sts_site16.gif" border="none" />
                </xsl:element>
                </td>
    </tr>
          </xsl:for-each>
        </table>
  </body>
</html>
  </xsl:template>
</xsl:stylesheet>

