šablona/stránka.xsl
changeset 3 1529a89b61a5
parent 2 ab9099ff88fa
child 4 1bb39595a51c
equal deleted inserted replaced
2:ab9099ff88fa 3:1529a89b61a5
    10 		method="xml" 
    10 		method="xml" 
    11 		indent="yes" 
    11 		indent="yes" 
    12 		encoding="UTF-8"		
    12 		encoding="UTF-8"		
    13 		doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
    13 		doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
    14 		doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
    14 		doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
    15 		
       
    16 	
    15 	
    17 	<xsl:template match="/">
    16 	<xsl:template match="/">
    18 		<html>
    17 		<html>
    19 			<head>
    18 			<head>
    20 				<title><xsl:value-of select="g:stránka/g:nadpis"/></title>				
    19 				<title><xsl:value-of select="g:stránka/g:nadpis"/></title>				
    21 			</head>
    20 			</head>
    22 			<body>
    21 			<body>
    23 				<h1><xsl:value-of select="g:stránka/g:nadpis"/></h1>				
    22 				<xsl:apply-templates select="document(fn:encode-for-uri('../vstup/záhlaví.inc'))/g:stránka/h:text/node()"/>			
    24 			
    23 				<h1><xsl:value-of select="g:stránka/g:nadpis"/></h1>
    25 				<!-- Vložíme obsah stránky: -->				
       
    26 				<xsl:apply-templates select="g:stránka/h:text/node()"/>
    24 				<xsl:apply-templates select="g:stránka/h:text/node()"/>
    27 				
    25 				<xsl:apply-templates select="document(fn:encode-for-uri('../vstup/zápatí.inc'))/g:stránka/h:text/node()"/>				
    28 				<!-- Vložíme zápatí: -->
       
    29 				<xsl:apply-templates select="document(fn:encode-for-uri('../vstup/zápatí.inc'))/g:stránka/h:text/node()"/>
       
    30 				
       
    31 			</body>
    26 			</body>
    32 		</html>
    27 		</html>
    33 	</xsl:template>
    28 	</xsl:template>
    34 	
    29 	
    35 	<xsl:template match="node()|@*">
    30 	<xsl:template match="node()|@*">