author | František Kučera <franta-hg@frantovo.cz> |
Tue Aug 13 12:39:12 2013 +0200 (2013-08-13) | |
changeset 131 | d47607999a8c |
parent 126 | be52f52e7d39 |
child 132 | 1b16c8828fc0 |
permissions | -rw-r--r-- |
franta-hg@1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@61 | 2 |
<!-- |
franta-hg@61 | 3 |
XML Web generátor – program na generování webových stránek |
franta-hg@61 | 4 |
Copyright © 2012 František Kučera (frantovo.cz) |
franta-hg@61 | 5 |
|
franta-hg@61 | 6 |
This program is free software: you can redistribute it and/or modify |
franta-hg@61 | 7 |
it under the terms of the GNU General Public License as published by |
franta-hg@61 | 8 |
the Free Software Foundation, either version 3 of the License, or |
franta-hg@61 | 9 |
(at your option) any later version. |
franta-hg@61 | 10 |
|
franta-hg@61 | 11 |
This program is distributed in the hope that it will be useful, |
franta-hg@61 | 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@61 | 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@61 | 14 |
GNU General Public License for more details. |
franta-hg@61 | 15 |
|
franta-hg@61 | 16 |
You should have received a copy of the GNU General Public License |
franta-hg@61 | 17 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@61 | 18 |
--> |
franta-hg@1 | 19 |
<xsl:stylesheet version="2.0" |
franta-hg@1 | 20 |
xmlns="http://www.w3.org/1999/xhtml" |
franta-hg@2 | 21 |
xmlns:h="http://www.w3.org/1999/xhtml" |
franta-hg@18 | 22 |
xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
franta-hg@18 | 23 |
xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace" |
franta-hg@17 | 24 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" |
franta-hg@27 | 25 |
xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" |
franta-hg@2 | 26 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
franta-hg@2 | 27 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
franta-hg@5 | 28 |
xmlns:svg="http://www.w3.org/2000/svg" |
franta-hg@15 | 29 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
franta-hg@27 | 30 |
exclude-result-prefixes="fn h s k m j xs"> |
franta-hg@2 | 31 |
<xsl:output |
franta-hg@2 | 32 |
method="xml" |
franta-hg@2 | 33 |
indent="yes" |
franta-hg@124 | 34 |
encoding="UTF-8" |
franta-hg@2 | 35 |
doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" |
franta-hg@2 | 36 |
doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> |
franta-hg@51 | 37 |
<xsl:include href="stránka-společné.xsl"/> |
franta-hg@1 | 38 |
|
franta-hg@51 | 39 |
<!-- |
franta-hg@51 | 40 |
Šablona stránky |
franta-hg@51 | 41 |
*************** |
franta-hg@51 | 42 |
--> |
franta-hg@1 | 43 |
<xsl:template match="/"> |
franta-hg@1 | 44 |
<html> |
franta-hg@1 | 45 |
<head> |
franta-hg@16 | 46 |
<xsl:if test="$podporaZaostalýchProhlížečů"> |
franta-hg@16 | 47 |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> |
franta-hg@16 | 48 |
</xsl:if> |
franta-hg@124 | 49 |
<title> |
franta-hg@124 | 50 |
<xsl:choose> |
franta-hg@124 | 51 |
<xsl:when test="s:stránka/s:nadpis/text() = $konfigurace/k:web/k:název/text()"><xsl:value-of select="s:stránka/s:nadpis"/></xsl:when> |
franta-hg@124 | 52 |
<xsl:otherwise><xsl:value-of select="s:stránka/s:nadpis"/> – <xsl:value-of select="$konfigurace/k:web/k:název"/></xsl:otherwise> |
franta-hg@124 | 53 |
</xsl:choose> |
franta-hg@124 | 54 |
</title> |
franta-hg@8 | 55 |
<link title="Novinky (Atom)" href="atom.xml" type="application/atom+xml" rel="alternate"/> |
franta-hg@10 | 56 |
<link title="Novinky (RSS)" href="rss.xml" type="application/rss+xml" rel="alternate"/> |
franta-hg@126 | 57 |
<xsl:apply-templates select="$konfigurace/k:web/k:autor/k:jméno"/> |
franta-hg@126 | 58 |
<xsl:apply-templates select="s:stránka/s:perex"/> |
franta-hg@127 | 59 |
<xsl:apply-templates select="s:stránka/s:klíčováSlova"/> |
franta-hg@18 | 60 |
<xsl:apply-templates select="$konfigurace/k:web/k:js"/> |
franta-hg@51 | 61 |
<xsl:apply-templates select="$konfigurace/k:web/k:css"/> |
franta-hg@1 | 62 |
</head> |
franta-hg@1 | 63 |
<body> |
franta-hg@12 | 64 |
<div id="tělo"> |
franta-hg@77 | 65 |
<xsl:call-template name="vložZáhlaví"/> |
franta-hg@12 | 66 |
<div id="vnitřek"> |
franta-hg@18 | 67 |
<h1><xsl:value-of select="s:stránka/s:nadpis"/></h1> |
franta-hg@77 | 68 |
<xsl:call-template name="vložNabídku"/> |
franta-hg@12 | 69 |
<div id="text"> |
franta-hg@18 | 70 |
<xsl:apply-templates select="s:stránka/h:text/node()"/> |
franta-hg@12 | 71 |
</div> |
franta-hg@12 | 72 |
</div> |
franta-hg@91 | 73 |
<xsl:call-template name="poznámkyPodČarou"/> |
franta-hg@77 | 74 |
<xsl:call-template name="vložZápatí"/> |
franta-hg@12 | 75 |
</div> |
franta-hg@1 | 76 |
</body> |
franta-hg@1 | 77 |
</html> |
franta-hg@1 | 78 |
</xsl:template> |
franta-hg@87 | 79 |
|
franta-hg@1 | 80 |
</xsl:stylesheet> |
franta-hg@87 | 81 |