author | František Kučera <franta-hg@frantovo.cz> |
Thu Oct 24 22:06:44 2019 +0200 (2019-10-24) | |
changeset 136 | d5feb9d8ebc3 |
parent 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@136 | 8 |
the Free Software Foundation, version 3 of the License. |
franta-hg@61 | 9 |
|
franta-hg@61 | 10 |
This program is distributed in the hope that it will be useful, |
franta-hg@61 | 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@61 | 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@61 | 13 |
GNU General Public License for more details. |
franta-hg@61 | 14 |
|
franta-hg@61 | 15 |
You should have received a copy of the GNU General Public License |
franta-hg@61 | 16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@61 | 17 |
--> |
franta-hg@1 | 18 |
<xsl:stylesheet version="2.0" |
franta-hg@1 | 19 |
xmlns="http://www.w3.org/1999/xhtml" |
franta-hg@2 | 20 |
xmlns:h="http://www.w3.org/1999/xhtml" |
franta-hg@18 | 21 |
xmlns:s="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
franta-hg@18 | 22 |
xmlns:k="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/konfigurace" |
franta-hg@17 | 23 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro" |
franta-hg@27 | 24 |
xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce" |
franta-hg@2 | 25 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
franta-hg@2 | 26 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
franta-hg@5 | 27 |
xmlns:svg="http://www.w3.org/2000/svg" |
franta-hg@15 | 28 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
franta-hg@27 | 29 |
exclude-result-prefixes="fn h s k m j xs"> |
franta-hg@2 | 30 |
<xsl:output |
franta-hg@2 | 31 |
method="xml" |
franta-hg@2 | 32 |
indent="yes" |
franta-hg@124 | 33 |
encoding="UTF-8" |
franta-hg@2 | 34 |
doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" |
franta-hg@2 | 35 |
doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> |
franta-hg@51 | 36 |
<xsl:include href="stránka-společné.xsl"/> |
franta-hg@1 | 37 |
|
franta-hg@51 | 38 |
<!-- |
franta-hg@51 | 39 |
Šablona stránky |
franta-hg@51 | 40 |
*************** |
franta-hg@51 | 41 |
--> |
franta-hg@1 | 42 |
<xsl:template match="/"> |
franta-hg@1 | 43 |
<html> |
franta-hg@1 | 44 |
<head> |
franta-hg@16 | 45 |
<xsl:if test="$podporaZaostalýchProhlížečů"> |
franta-hg@16 | 46 |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> |
franta-hg@132 | 47 |
<xsl:call-template name="varováníRetardaceDlouhé"/> |
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 |