diff options
Diffstat (limited to 'public/sitemap.xsl')
-rw-r--r-- | public/sitemap.xsl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/public/sitemap.xsl b/public/sitemap.xsl new file mode 100644 index 0000000..d3ad1a3 --- /dev/null +++ b/public/sitemap.xsl @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet version="3.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" version="1.0" encoding="UTF-8" indent="yes"/> + <xsl:template match="/"> + <html style="color-scheme: dark light"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1"/> + <title>Sitemap</title> + </head> + <body> + <h1>Sitemap</h1> + <p>Looks Like you reached the <a href="https://en.wikipedia.org/wiki/Sitemaps">sitemap</a> for Search engine use</p> + <h2>Webpages</h2> + <ul> + <xsl:for-each select="sitemap:urlset/sitemap:url"> + <li> + <a href="{sitemap:loc}"><xsl:value-of select="sitemap:loc"/></a> + </li> + </xsl:for-each> + </ul> + </body> + </html> + </xsl:template> +</xsl:stylesheet> |