<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <xsl:output method="html" encoding="UTF-8" indent="yes"/>

  <xsl:template match="/">
    <html lang="el">
      <head>
        <meta charset="utf-8"/>
        <title>Sitemap – belka.gr</title>
        <style>
          body{font:14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;padding:24px;color:#111}
          h1{margin:0 0 16px}
          table{border-collapse:collapse;width:100%}
          th,td{border:1px solid #e5e7eb;padding:8px 10px;text-align:left;vertical-align:top}
          th{background:#f8fafc}
          .muted{color:#6b7280}
        </style>
      </head>
      <body>
        <h1>XML Sitemap</h1>
        <table>
          <tr>
            <th>URL</th>
            <th>Lastmod</th>
            <th>Changefreq</th>
            <th>Priority</th>
          </tr>
          <xsl:for-each select="urlset/url">
            <tr>
              <td><a href="{loc}"><xsl:value-of select="loc"/></a></td>
              <td><xsl:value-of select="lastmod"/></td>
              <td><xsl:value-of select="changefreq"/></td>
              <td><xsl:value-of select="priority"/></td>
            </tr>
          </xsl:for-each>
        </table>
        <p class="muted">Αυτό το στυλ είναι μόνο για προβολή στον browser. Οι μηχανές αναζήτησης αγνοούν το XSL.</p>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>