<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:sm="http://www.sitemaps.org/schemas/sitemap/0.9">
  <xsl:output method="html" encoding="UTF-8" indent="yes"/>
  <xsl:template match="/">
    <html>
      <head>
        <title>Aster CMI - Specialities Sitemap</title>
        <style>
          body { font-family: Arial, sans-serif; margin: 30px; background: #f5f5f5; }
          h1 { color: #00A19A; }
          table { width: 100%; border-collapse: collapse; background: #fff; }
          th { background: #00A19A; color: white; padding: 10px; text-align: left; }
          td { padding: 10px; border-bottom: 1px solid #ddd; }
          tr:hover td { background: #f0fafa; }
          a { color: #00A19A; text-decoration: none; }
          a:hover { text-decoration: underline; }
          .count { color: #666; font-size: 14px; margin-bottom: 10px; }
        </style>
      </head>
      <body>
        <h1>Aster CMI Bangalore — Specialities Sitemap</h1>
        <p class="count">
          Total URLs: <xsl:value-of select="count(sm:urlset/sm:url)"/>
        </p>
        <table>
          <tr>
            <th>#</th>
            <th>URL</th>
            <th>Last Modified</th>
            <th>Change Frequency</th>
            <th>Priority</th>
          </tr>
          <xsl:for-each select="sm:urlset/sm:url">
            <tr>
              <td><xsl:value-of select="position()"/></td>
              <td>
                <a href="{sm:loc}"><xsl:value-of select="sm:loc"/></a>
              </td>
              <td><xsl:value-of select="sm:lastmod"/></td>
              <td><xsl:value-of select="sm:changefreq"/></td>
              <td><xsl:value-of select="sm:priority"/></td>
            </tr>
          </xsl:for-each>
        </table>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>