author | František Kučera <franta-hg@frantovo.cz> |
Sat Jan 07 01:44:01 2012 +0100 (2012-01-07) | |
changeset 56 | 24e50902b58e |
parent 25 | 0d84061c9878 |
child 61 | 9503eb8377f1 |
permissions | -rw-r--r-- |
franta-hg@24 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@24 | 2 |
<xsl:stylesheet version="2.0" |
franta-hg@24 | 3 |
xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
franta-hg@24 | 4 |
xmlns:a="http://www.w3.org/2005/Atom" |
franta-hg@24 | 5 |
xmlns:atom="http://www.w3.org/2005/Atom" |
franta-hg@24 | 6 |
xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" |
franta-hg@24 | 7 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
franta-hg@24 | 8 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
franta-hg@24 | 9 |
exclude-result-prefixes="fn j a"> |
franta-hg@24 | 10 |
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> |
franta-hg@24 | 11 |
|
franta-hg@24 | 12 |
<xsl:template match="/"> |
franta-hg@24 | 13 |
<stránka |
franta-hg@24 | 14 |
xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
franta-hg@25 | 15 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
franta-hg@25 | 16 |
<skrytá>ano</skrytá> |
franta-hg@24 | 17 |
<nadpis>Seznam všech stránek</nadpis> |
franta-hg@24 | 18 |
<perex>Všechny stránky tohoto webu.</perex> |
franta-hg@25 | 19 |
<text xmlns="http://www.w3.org/1999/xhtml"> |
franta-hg@25 | 20 |
<xsl:apply-templates select="a:feed/a:entry"/> |
franta-hg@24 | 21 |
</text> |
franta-hg@24 | 22 |
</stránka> |
franta-hg@24 | 23 |
</xsl:template> |
franta-hg@24 | 24 |
|
franta-hg@24 | 25 |
<xsl:template match="a:entry"> |
franta-hg@25 | 26 |
<p style="seznamStranek"> |
franta-hg@25 | 27 |
<xsl:variable name="základníUrl" select="//a:feed/a:link[not(@rel)]/@href"/> |
franta-hg@25 | 28 |
<a href="{replace(a:link/@href, $základníUrl, '')}"><xsl:value-of select="a:title"/></a> |
franta-hg@25 | 29 |
– |
franta-hg@25 | 30 |
<xsl:value-of select="a:summary"/> |
franta-hg@26 | 31 |
(<xsl:value-of select="format-dateTime(adjust-dateTime-to-timezone(a:updated), |
franta-hg@26 | 32 |
'[D1].[M1]. [Y0001] [H1]:[m01]')"/>) |
franta-hg@25 | 33 |
</p> |
franta-hg@24 | 34 |
</xsl:template> |
franta-hg@24 | 35 |
|
franta-hg@24 | 36 |
</xsl:stylesheet> |