10 <xsl:output method="xml" indent="yes" encoding="UTF-8"/> |
10 <xsl:output method="xml" indent="yes" encoding="UTF-8"/> |
11 |
11 |
12 <xsl:template match="/"> |
12 <xsl:template match="/"> |
13 <stránka |
13 <stránka |
14 xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
14 xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
15 xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
15 xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
|
16 <skrytá>ano</skrytá> |
16 <nadpis>Seznam všech stránek</nadpis> |
17 <nadpis>Seznam všech stránek</nadpis> |
17 <perex>Všechny stránky tohoto webu.</perex> |
18 <perex>Všechny stránky tohoto webu.</perex> |
18 <text xmlns="http://www.w3.org/1999/xhtml"> |
19 <text xmlns="http://www.w3.org/1999/xhtml"> |
19 <table class="seznamStranek"> |
20 <xsl:apply-templates select="a:feed/a:entry"/> |
20 <thead> |
|
21 <tr> |
|
22 <td>Název</td> |
|
23 <td>Vytvořeno</td> |
|
24 </tr> |
|
25 </thead> |
|
26 <tbody> |
|
27 <xsl:apply-templates select="a:feed/a:entry"/> |
|
28 </tbody> |
|
29 </table> |
|
30 </text> |
21 </text> |
31 </stránka> |
22 </stránka> |
32 </xsl:template> |
23 </xsl:template> |
33 |
24 |
34 <xsl:template match="a:entry"> |
25 <xsl:template match="a:entry"> |
35 <tr> |
26 <p style="seznamStranek"> |
36 <td><a href="{a:link/@href}"><xsl:value-of select="a:title"/></a></td> |
27 <xsl:variable name="základníUrl" select="//a:feed/a:link[not(@rel)]/@href"/> |
37 <td><xsl:value-of select="a:updated"/></td> |
28 <a href="{replace(a:link/@href, $základníUrl, '')}"><xsl:value-of select="a:title"/></a> |
38 </tr> |
29 – |
|
30 <xsl:value-of select="a:summary"/> |
|
31 (<xsl:value-of select="format-dateTime(a:updated, |
|
32 '[D01].[M01]. [Y0001] [H01]:[m01]')"/>) |
|
33 </p> |
39 </xsl:template> |
34 </xsl:template> |
40 |
35 |
41 </xsl:stylesheet> |
36 </xsl:stylesheet> |