mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-08 09:26:26 +00:00
38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" exclude-result-prefixes="sitemap">
|
|
<xsl:output method="html" encoding="UTF-8" indent="yes" />
|
|
<xsl:template match="/">
|
|
<html>
|
|
<body>
|
|
<table>
|
|
<tbody>
|
|
<xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
|
|
<tr>
|
|
<td>
|
|
<a href="{sitemap:loc}">
|
|
<xsl:value-of select="sitemap:loc" />
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="sitemap:lastmod" />
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
<xsl:for-each select="sitemap:urlset/sitemap:url">
|
|
<tr>
|
|
<td>
|
|
<a href="{sitemap:loc}">
|
|
<xsl:value-of select="sitemap:loc" />
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="sitemap:lastmod" />
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
</xsl:stylesheet> |