Show
Ignore:
Timestamp:
04/03/11 20:39:10 (13 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

statický obsah a úloha pro čištění

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • šablona/stránka.xsl

    r10 r11  
    1414                doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"  
    1515                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/'"/> 
    1819         
    1920        <!-- Celý dokument: --> 
    2021        <xsl:template match="/"> 
    21                 <xsl:variable name="konfigurace" select="document($konfigurák)"/> 
     22                <xsl:variable name="konfigurace" select="document(concat($vstup, 'web.conf'))"/> 
    2223                <html> 
    2324                        <head> 
     
    2930                        </head> 
    3031                        <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()"/>                       
    3233                                <h1><xsl:value-of select="g:stránka/g:nadpis"/></h1> 
    3334                                <xsl:apply-templates select="g:stránka/h:text/node()"/> 
     
    4344                                        </xsl:for-each> 
    4445                                </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()"/>                                
    4647                        </body> 
    4748                </html> 
     
    5657    </xsl:template> 
    5758     
     59    <!-- Odkazy na JavaScript a kaskádové styly --> 
    5860    <xsl:template match="g:web/g:js"> 
    5961        <script src="{text()}" type="text/javascript" />