diff options
Diffstat (limited to 'sitemap.xsl')
-rw-r--r-- | sitemap.xsl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sitemap.xsl b/sitemap.xsl index 86b131d..6cf398e 100644 --- a/sitemap.xsl +++ b/sitemap.xsl @@ -6,5 +6,14 @@ title: Sitemap <h1>Sitemap</h1> <p>以下是本站的所有链接:</p> <ul> -<xsl:apply-templates select="sm:urlset" /> + <xsl:for-each select="sm:urlset"> + <xsl:for-each select="sm:url"> + <li> + <a> + <xsl:attribute name="href"><xsl:value-of select="sm:loc" /></xsl:attribute> + <xsl:value-of select="sm:loc" /> + </a> + </li> + </xsl:for-each> + </xsl:for-each> </ul> \ No newline at end of file |