root/šablona/stránka.xsl @ 136:d5feb9d8ebc3

Revision 136:d5feb9d8ebc3, 3.2 KB (checked in by František Kučera <franta-hg@…>, 5 years ago)

fix license version: GNU GPLv3

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