šablona/stránka.xsl
changeset 124 42aec5217cbf
parent 91 1a70b4045a19
child 126 be52f52e7d39
equal deleted inserted replaced
123:c1999d6bc76a 124:42aec5217cbf
    29 	xmlns:xs="http://www.w3.org/2001/XMLSchema"
    29 	xmlns:xs="http://www.w3.org/2001/XMLSchema"
    30 	exclude-result-prefixes="fn h s k m j xs">
    30 	exclude-result-prefixes="fn h s k m j xs">
    31 	<xsl:output 
    31 	<xsl:output 
    32 		method="xml" 
    32 		method="xml" 
    33 		indent="yes" 
    33 		indent="yes" 
    34 		encoding="UTF-8"		
    34 		encoding="UTF-8"
    35 		doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
    35 		doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
    36 		doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
    36 		doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
    37 	<xsl:include href="stránka-společné.xsl"/>
    37 	<xsl:include href="stránka-společné.xsl"/>
    38 	
    38 	
    39 	<!-- 
    39 	<!-- 
    44 		<html>
    44 		<html>
    45 			<head>
    45 			<head>
    46 				<xsl:if test="$podporaZaostalýchProhlížečů">
    46 				<xsl:if test="$podporaZaostalýchProhlížečů">
    47 					<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
    47 					<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
    48 				</xsl:if>
    48 				</xsl:if>
    49 				<title><xsl:value-of select="s:stránka/s:nadpis"/></title>
    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>
    50 				<link title="Novinky (Atom)" href="atom.xml" type="application/atom+xml" rel="alternate"/>
    55 				<link title="Novinky (Atom)" href="atom.xml" type="application/atom+xml" rel="alternate"/>
    51 				<link title="Novinky (RSS)"  href="rss.xml"  type="application/rss+xml"  rel="alternate"/>
    56 				<link title="Novinky (RSS)"  href="rss.xml"  type="application/rss+xml"  rel="alternate"/>
    52 				<xsl:apply-templates select="$konfigurace/k:web/k:js"/>
    57 				<xsl:apply-templates select="$konfigurace/k:web/k:js"/>
    53 				<xsl:apply-templates select="$konfigurace/k:web/k:css"/>
    58 				<xsl:apply-templates select="$konfigurace/k:web/k:css"/>
    54 			</head>
    59 			</head>