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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/default/transform/document.xsl

    r14578 r17017  
    88  exclude-result-prefixes="java util gsf">
    99
     10  <!-- style includes global params interface_name, library_name -->
    1011  <xsl:include href="style.xsl"/>
    1112  <xsl:include href="service-params.xsl"/>
     
    1314
    1415  <xsl:output method="html"/>
     16 
     17  <!-- the main page layout template is here -->
     18  <xsl:template match="page">
     19    <xsl:variable name="bookswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:variable>
     20    <xsl:variable name="a"><xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/></xsl:variable>
     21
     22    <xsl:choose>
     23      <xsl:when test="$bookswitch = 'flashxml' and $a = 'd'">
     24         <html>
     25          <xsl:call-template name="response" />
     26        </html>
     27      </xsl:when>
     28
     29      <xsl:otherwise>   
     30        <html>
     31    <head>
     32      <title>
     33    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     34    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     35      </title>
     36      <xsl:call-template name="globalStyle"/>
     37      <xsl:call-template name="pageStyle"/>
     38    </head>
     39          <body>
     40           <div id="globalwrapper">
     41          <xsl:call-template name="response" />
     42          <xsl:call-template name="greenstoneFooter"/>
     43       </div>
     44          </body>
     45        </html>
     46      </xsl:otherwise>
     47    </xsl:choose>
     48  </xsl:template>
     49 
     50 
    1551   <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
    1652   <xsl:variable name="bookswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:variable>
Note: See TracChangeset for help on using the changeset viewer.