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

Move the HTML skeleton from style.xsl to the current XSL file + make it working with both GS2 and GS3 look and feel transformations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/sites/localsite/collect/gberg/transform/document-toc.xsl

    r8538 r17022  
    1212
    1313  <xsl:output method="html"/>
     14 
     15    <!-- the main page layout template is here -->
     16  <xsl:template match="page">
     17   
     18    <xsl:choose>
     19    <!-- if we are using hte classic GS2 look and feel use this template otherwise use the default GS3 look and feel template -->
     20      <xsl:when test="$interface_name = 'gs2'">
     21    <html>
     22    <head>
     23      <title>
     24    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     25    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     26      </title>
     27      <xsl:call-template name="globalStyle"/>
     28      <xsl:call-template name="pageStyle"/>
     29    </head>
     30      <body class="bgimage">
     31    <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
     32    <div id="page">
     33       <xsl:apply-templates select="pageResponse"/>
     34       <xsl:call-template name="greenstoneFooter"/>                   
     35    </div>
     36      </body>
     37    </html>
     38      </xsl:when>
     39
     40      <xsl:otherwise>   
     41        <html>
     42    <head>
     43      <title>
     44    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     45    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     46      </title>
     47      <xsl:call-template name="globalStyle"/>
     48      <xsl:call-template name="pageStyle"/>
     49    </head>
     50          <body>
     51           <div id="globalwrapper">
     52          <xsl:call-template name="response" />
     53          <xsl:call-template name="greenstoneFooter"/>
     54       </div>
     55          </body>
     56        </html>
     57      </xsl:otherwise>
     58    </xsl:choose>
     59  </xsl:template>
    1460 
    1561  <xsl:template name="pageTitle">
Note: See TracChangeset for help on using the changeset viewer.