summaryrefslogtreecommitdiff
path: root/sitemap.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'sitemap.xsl')
-rw-r--r--sitemap.xsl18
1 files changed, 8 insertions, 10 deletions
diff --git a/sitemap.xsl b/sitemap.xsl
index 4485c3b..4c843a7 100644
--- a/sitemap.xsl
+++ b/sitemap.xsl
@@ -4,16 +4,14 @@ title: Sitemap
---
<h1>Sitemap</h1>
-<p>以下是本站的所有链接:</p>
+<p>以下是本站的所有链接(总共<xsl:value-of select="count(sm:urlset/sm:url)" />条):</p>
<ul>
- <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 select="sm:urlset/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>
</ul> \ No newline at end of file