Changeset 17022


Ignore:
Timestamp:
08/27/08 16:33:15 (12 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.

Location:
greenstone3/trunk/web/sites/localsite/collect/gberg/transform
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/sites/localsite/collect/gberg/transform/about.xsl

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

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