# HG changeset patch # User František Kučera <franta-hg@frantovo.cz> # Date 1301782064 -7200 # Node ID 1529a89b61a54dc02da253453324dc5f51340cdd # Parent ab9099ff88fa44f8dde13568db93a36f51a642d3 vkládáme i záhlaví, #6 diff -r ab9099ff88fa -r 1529a89b61a5 vstup/záhlaví.inc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vstup/záhlaví.inc Sun Apr 03 00:07:44 2011 +0200 @@ -0,0 +1,8 @@ +<stránka xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"> + <text xmlns="http://www.w3.org/1999/xhtml"> + <p class="logo"> + [tady bude časem naše logo] + </p> + </text> +</stránka> + diff -r ab9099ff88fa -r 1529a89b61a5 šablona/stránka.xsl --- a/šablona/stránka.xsl Sat Apr 02 23:54:23 2011 +0200 +++ b/šablona/stránka.xsl Sun Apr 03 00:07:44 2011 +0200 @@ -12,7 +12,6 @@ encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> - <xsl:template match="/"> <html> @@ -20,14 +19,10 @@ <title><xsl:value-of select="g:stránka/g:nadpis"/></title> </head> <body> - <h1><xsl:value-of select="g:stránka/g:nadpis"/></h1> - - <!-- Vložíme obsah stránky: --> + <xsl:apply-templates select="document(fn:encode-for-uri('../vstup/záhlaví.inc'))/g:stránka/h:text/node()"/> + <h1><xsl:value-of select="g:stránka/g:nadpis"/></h1> <xsl:apply-templates select="g:stránka/h:text/node()"/> - - <!-- Vložíme zápatí: --> - <xsl:apply-templates select="document(fn:encode-for-uri('../vstup/zápatí.inc'))/g:stránka/h:text/node()"/> - + <xsl:apply-templates select="document(fn:encode-for-uri('../vstup/zápatí.inc'))/g:stránka/h:text/node()"/> </body> </html> </xsl:template>