1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/šablona/seznam.xsl Wed Jul 06 22:37:22 2011 +0200
1.3 @@ -0,0 +1,41 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<xsl:stylesheet version="2.0"
1.6 + xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
1.7 + xmlns:a="http://www.w3.org/2005/Atom"
1.8 + xmlns:atom="http://www.w3.org/2005/Atom"
1.9 + xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
1.10 + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1.11 + xmlns:fn="http://www.w3.org/2005/xpath-functions"
1.12 + exclude-result-prefixes="fn j a">
1.13 + <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
1.14 +
1.15 + <xsl:template match="/">
1.16 + <stránka
1.17 + xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
1.18 + xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
1.19 + <nadpis>Seznam všech stránek</nadpis>
1.20 + <perex>Všechny stránky tohoto webu.</perex>
1.21 + <text xmlns="http://www.w3.org/1999/xhtml">
1.22 + <table class="seznamStranek">
1.23 + <thead>
1.24 + <tr>
1.25 + <td>Název</td>
1.26 + <td>Vytvořeno</td>
1.27 + </tr>
1.28 + </thead>
1.29 + <tbody>
1.30 + <xsl:apply-templates select="a:feed/a:entry"/>
1.31 + </tbody>
1.32 + </table>
1.33 + </text>
1.34 + </stránka>
1.35 + </xsl:template>
1.36 +
1.37 + <xsl:template match="a:entry">
1.38 + <tr>
1.39 + <td><a href="{a:link/@href}"><xsl:value-of select="a:title"/></a></td>
1.40 + <td><xsl:value-of select="a:updated"/></td>
1.41 + </tr>
1.42 + </xsl:template>
1.43 +
1.44 +</xsl:stylesheet>