Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
46 lines
1.4 KiB
XML
46 lines
1.4 KiB
XML
<?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"
|
|
exclude-result-prefixes="s">
|
|
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
|
|
|
|
<xsl:template match="/">
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Sitemap</title>
|
|
<style>
|
|
body{font-family:Arial,Helvetica,sans-serif;max-width:1100px;margin:24px auto;padding:0 16px;line-height:1.6}
|
|
h1{font-size:20px;margin:0 0 12px}
|
|
table{width:100%;border-collapse:collapse}
|
|
th,td{border:1px solid #eee;padding:8px 10px;text-align:left}
|
|
th{background:#fafafa}
|
|
a{color:#0b57d0;text-decoration:none}
|
|
a:hover{text-decoration:underline}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Sitemap</h1>
|
|
<table>
|
|
<tr>
|
|
<th>loc</th>
|
|
<th>lastmod</th>
|
|
</tr>
|
|
<xsl:for-each select="s:urlset/s:url">
|
|
<tr>
|
|
<td>
|
|
<a>
|
|
<xsl:attribute name="href"><xsl:value-of select="s:loc"/></xsl:attribute>
|
|
<xsl:value-of select="s:loc"/>
|
|
</a>
|
|
</td>
|
|
<td><xsl:value-of select="s:lastmod"/></td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|