Changeset 17021


Ignore:
Timestamp:
2008-08-27T16:32:21+12:00 (16 years ago)
Author:
max
Message:

Move the HTML skeleton from style.xsl to the current XSL file.

Location:
greenstone3/trunk/web/interfaces/nzdl/transform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/nzdl/transform/gsdl.xsl

    r8534 r17021  
    77  exclude-result-prefixes="java util">
    88
     9  <!-- style includes global params interface_name, library_name -->
    910  <xsl:include href="style.xsl"/>
    1011  <xsl:include href="gsdl-text.xsl"/>
     
    1213  <xsl:include href="page-common.xsl"/>
    1314
    14   <xsl:output method="html"/> 
     15  <xsl:output method="html"/>
     16
     17      <!-- the main page layout template is here -->
     18  <xsl:template match="page">
     19    <html>
     20    <head>
     21      <title>
     22    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     23    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     24      </title>
     25      <xsl:call-template name="globalStyle"/>
     26      <xsl:call-template name="pageStyle"/>
     27    </head>
     28      <body class="bgimage">
     29    <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
     30    <div id="page">
     31       <xsl:apply-templates select="pageResponse"/>
     32       <xsl:call-template name="greenstoneFooter"/>                   
     33    </div>
     34      </body>
     35    </html>
     36  </xsl:template>
    1537
    1638 <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/nzdl/transform/home.xsl

    r13826 r17021  
    77  exclude-result-prefixes="java util">
    88
     9  <!-- style includes global params interface_name, library_name -->
    910  <xsl:include href="style.xsl"/>
    1011  <xsl:include href="home-text.xsl"/>
    1112  <xsl:include href="page-common.xsl"/>
    1213
    13   <xsl:output method="html"/> 
     14  <xsl:output method="html"/>
     15
     16    <!-- the main page layout template is here -->
     17  <xsl:template match="page">
     18    <html>
     19    <head>
     20      <title>
     21    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     22    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     23      </title>
     24      <xsl:call-template name="globalStyle"/>
     25      <xsl:call-template name="pageStyle"/>
     26    </head>
     27      <body class="bgimage">
     28    <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
     29    <div id="page">
     30       <xsl:apply-templates select="pageResponse"/>
     31       <xsl:call-template name="greenstoneFooter"/>                   
     32    </div>
     33      </body>
     34    </html>
     35  </xsl:template> 
    1436
    1537  <xsl:template name="pageTitle">
Note: See TracChangeset for help on using the changeset viewer.