Changeset 11:78a8dd1eeb2b for šablona/stránka.xsl
- Timestamp:
- 04/03/11 20:39:10 (13 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
šablona/stránka.xsl
r10 r11 14 14 doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 15 15 doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> 16 17 <xsl:param name="konfigurák"/> 16 17 <!-- Vstupní adresář: --> 18 <xsl:param name="vstup" select="'../vstup/'"/> 18 19 19 20 <!-- Celý dokument: --> 20 21 <xsl:template match="/"> 21 <xsl:variable name="konfigurace" select="document( $konfigurák)"/>22 <xsl:variable name="konfigurace" select="document(concat($vstup, 'web.conf'))"/> 22 23 <html> 23 24 <head> … … 29 30 </head> 30 31 <body> 31 <xsl:apply-templates select="document(fn:encode-for-uri( '../vstup/záhlaví.inc'))/g:stránka/h:text/node()"/>32 <xsl:apply-templates select="document(fn:encode-for-uri(concat($vstup, 'záhlaví.inc')))/g:stránka/h:text/node()"/> 32 33 <h1><xsl:value-of select="g:stránka/g:nadpis"/></h1> 33 34 <xsl:apply-templates select="g:stránka/h:text/node()"/> … … 43 44 </xsl:for-each> 44 45 </ul> 45 <xsl:apply-templates select="document(fn:encode-for-uri( '../vstup/zápatí.inc'))/g:stránka/h:text/node()"/>46 <xsl:apply-templates select="document(fn:encode-for-uri(concat($vstup, 'zápatí.inc')))/g:stránka/h:text/node()"/> 46 47 </body> 47 48 </html> … … 56 57 </xsl:template> 57 58 59 <!-- Odkazy na JavaScript a kaskádové styly --> 58 60 <xsl:template match="g:web/g:js"> 59 61 <script src="{text()}" type="text/javascript" />