Revision 9:71275159d985, 0.8 KB
(checked in by František Kučera <franta-hg@…>, 14 years ago)
|
Sitemap.xml agregace, vyřešeno #2
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <xsl:stylesheet version="2.0" |
---|
3 | xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" |
---|
4 | xmlns:a="http://www.w3.org/2005/Atom" |
---|
5 | xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor" |
---|
6 | xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" |
---|
7 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
8 | xmlns:fn="http://www.w3.org/2005/xpath-functions" |
---|
9 | exclude-result-prefixes="fn g j a"> |
---|
10 | <xsl:output method="xml" indent="yes" encoding="UTF-8"/> |
---|
11 | |
---|
12 | <xsl:template match="/"> |
---|
13 | <urlset> |
---|
14 | <xsl:apply-templates select="a:feed/a:entry"/> |
---|
15 | </urlset> |
---|
16 | </xsl:template> |
---|
17 | |
---|
18 | <xsl:template match="a:entry"> |
---|
19 | <url> |
---|
20 | <loc><xsl:value-of select="a:link/@href"/></loc> |
---|
21 | <lastmod><xsl:value-of select="a:updated"/></lastmod> |
---|
22 | </url> |
---|
23 | </xsl:template> |
---|
24 | |
---|
25 | </xsl:stylesheet> |
---|