<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:s="http://www.sitemaps.org/schemas/sitemap/0.9">
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
  <head>
    <title>Website Sitemap</title>
    <meta charset="UTF-8"/>
    <style>
      body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; margin: 40px; background: #f8fafc; color: #0f172a; }
      h2 { margin-bottom: 1rem; }
      table { border-collapse: collapse; width: 100%; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
      th, td { border: 1px solid #e5e7eb; padding: 8px 12px; text-align: left; }
      th { background: #f1f5f9; }
      tr:nth-child(even) { background: #f9fafb; }
      a { color: #2563eb; text-decoration: none; }
      a:hover { text-decoration: underline; }
      footer { margin-top: 24px; color: #64748b; font-size: 14px; }
    </style>
  </head>
  <body>
    <h2>Site Map</h2>
    <table>
      <tr><th>Page URL</th><th>Last Modified</th><th>Change Frequency</th><th>Priority</th></tr>
      <xsl:for-each select="s:urlset/s:url">
        <tr>
          <td><a href="{s:loc}" target="_blank"><xsl:value-of select="s:loc"/></a></td>
          <td><xsl:value-of select="s:lastmod"/></td>
          <td><xsl:value-of select="s:changefreq"/></td>
          <td><xsl:value-of select="s:priority"/></td>
        </tr>
      </xsl:for-each>
    </table>
    <footer>Generated Sitemap Visualization — © 2025 TypeMaster Pro <a href="index.html">Home</a></footer>
  </body>
</html>
</xsl:template>
</xsl:stylesheet>
