Changeset 17017


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.

Location:
greenstone3/trunk/web/interfaces/default/transform
Files:
12 edited

Legend:

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

    r13505 r17017  
    1111 
    1212  <xsl:output method="html"/> 
     13 
     14    <!-- the main page layout template is here -->
     15  <xsl:template match="page">
     16        <html>
     17    <head>
     18      <title>
     19    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21      </title>
     22      <xsl:call-template name="globalStyle"/>
     23      <xsl:call-template name="pageStyle"/>
     24    </head>
     25          <body>
     26           <div id="globalwrapper">
     27          <xsl:call-template name="response" />
     28          <xsl:call-template name="greenstoneFooter"/>
     29       </div>
     30          </body>
     31        </html>
     32  </xsl:template>
    1333
    1434  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/applet.xsl

    r13267 r17017  
    77  exclude-result-prefixes="java util">
    88 
     9  <!-- style includes global params interface_name, library_name -->
    910  <xsl:include href="style.xsl"/>
    1011 
    1112  <xsl:output method="html"/> 
     13 
     14    <!-- the main page layout template is here -->
     15  <xsl:template match="page">
     16        <html>
     17    <head>
     18      <title>
     19    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21      </title>
     22      <xsl:call-template name="globalStyle"/>
     23      <xsl:call-template name="pageStyle"/>
     24    </head>
     25          <body>
     26           <div id="globalwrapper">
     27          <xsl:call-template name="response" />
     28          <xsl:call-template name="greenstoneFooter"/>
     29       </div>
     30          </body>
     31        </html>
     32  </xsl:template>
    1233
    1334  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/authen.xsl

    r14416 r17017  
    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="service-params.xsl"/>
    1112
    12   <xsl:output method="html"/> 
     13  <xsl:output method="html"/>
     14
     15  <!-- the main page layout template is here -->
     16  <xsl:template match="page">
     17        <html>
     18    <head>
     19      <title>
     20    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     21    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     22      </title>
     23      <xsl:call-template name="globalStyle"/>
     24      <xsl:call-template name="pageStyle"/>
     25    </head>
     26          <body>
     27           <div id="globalwrapper">
     28          <xsl:call-template name="response" />
     29          <xsl:call-template name="greenstoneFooter"/>
     30       </div>
     31          </body>
     32        </html>
     33  </xsl:template> 
    1334
    1435  <xsl:param name="library_name"/>
  • greenstone3/trunk/web/interfaces/default/transform/classifier.xsl

    r13546 r17017  
    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="classifiertools.xsl"/>
    1112  <xsl:include href="berrytools.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>
     28           <div id="globalwrapper">
     29          <xsl:call-template name="response" />
     30          <xsl:call-template name="greenstoneFooter"/>
     31       </div>
     32          </body>
     33        </html>
     34  </xsl:template>
     35 
    1436  <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
    1537
  • 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>
  • greenstone3/trunk/web/interfaces/default/transform/gli4gs3.xsl

    r14353 r17017  
    77  exclude-result-prefixes="java util">
    88 
     9  <!-- style includes global params interface_name, library_name -->
    910  <xsl:include href="style.xsl"/>
    1011 
    1112  <xsl:output method="html"/> 
     13 
     14    <!-- the main page layout template is here -->
     15  <xsl:template match="page">
     16        <html>
     17    <head>
     18      <title>
     19    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21      </title>
     22      <xsl:call-template name="globalStyle"/>
     23      <xsl:call-template name="pageStyle"/>
     24    </head>
     25          <body>
     26           <div id="globalwrapper">
     27          <xsl:call-template name="response" />
     28          <xsl:call-template name="greenstoneFooter"/>
     29       </div>
     30          </body>
     31        </html>
     32  </xsl:template>
    1233
    1334  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/help.xsl

    r13381 r17017  
    1111
    1212  <xsl:output method="html"/> 
     13 
     14    <!-- the main page layout template is here -->
     15  <xsl:template match="page">
     16        <html>
     17    <head>
     18      <title>
     19    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21      </title>
     22      <xsl:call-template name="globalStyle"/>
     23      <xsl:call-template name="pageStyle"/>
     24    </head>
     25          <body>
     26           <div id="globalwrapper">
     27          <xsl:call-template name="response" />
     28          <xsl:call-template name="greenstoneFooter"/>
     29       </div>
     30          </body>
     31        </html>
     32  </xsl:template>
    1333 
    1434  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/home.xsl

    r14294 r17017  
    1111
    1212  <xsl:output method="html"/> 
     13 
     14    <!-- the main page layout template is here -->
     15  <xsl:template match="page">
     16        <html>
     17    <head>
     18      <title>
     19    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21      </title>
     22      <xsl:call-template name="globalStyle"/>
     23      <xsl:call-template name="pageStyle"/>
     24    </head>
     25          <body>
     26           <div id="globalwrapper">
     27          <xsl:call-template name="response" />
     28          <xsl:call-template name="greenstoneFooter"/>
     29       </div>
     30          </body>
     31        </html>
     32  </xsl:template>
    1333
    1434  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/pref.xsl

    r13996 r17017  
    1111
    1212  <xsl:output method="html"/> 
     13 
     14    <!-- the main page layout template is here -->
     15  <xsl:template match="page">
     16        <html>
     17    <head>
     18      <title>
     19    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21      </title>
     22      <xsl:call-template name="globalStyle"/>
     23      <xsl:call-template name="pageStyle"/>
     24    </head>
     25          <body>
     26           <div id="globalwrapper">
     27          <xsl:call-template name="response" />
     28          <xsl:call-template name="greenstoneFooter"/>
     29       </div>
     30          </body>
     31        </html>
     32  </xsl:template>
    1333 
    1434  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/process.xsl

    r8526 r17017  
    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="service-params.xsl"/>
    1112
    1213  <xsl:output method="html"/> 
     14 
     15    <!-- the main page layout template is here -->
     16  <xsl:template match="page">
     17        <html>
     18    <head>
     19      <title>
     20    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     21    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     22      </title>
     23      <xsl:call-template name="globalStyle"/>
     24      <xsl:call-template name="pageStyle"/>
     25    </head>
     26          <body>
     27           <div id="globalwrapper">
     28          <xsl:call-template name="response" />
     29          <xsl:call-template name="greenstoneFooter"/>
     30       </div>
     31          </body>
     32        </html>
     33  </xsl:template>
    1334
    1435  <xsl:template name="pageTitle">
  • greenstone3/trunk/web/interfaces/default/transform/query.xsl

    r16945 r17017  
    1414
    1515  <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>
     29           <div id="globalwrapper">
     30          <xsl:call-template name="response" />
     31          <xsl:call-template name="greenstoneFooter"/>
     32       </div>
     33          </body>
     34        </html>
     35  </xsl:template>
    1636
    1737   <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
  • greenstone3/trunk/web/interfaces/default/transform/system.xsl

    r8526 r17017  
    55  extension-element-prefixes="java">
    66 
     7  <!-- style includes global params interface_name, library_name -->
    78  <xsl:include href="style.xsl"/>
     9 
     10  <!-- the main page layout template is here -->
     11  <xsl:template match="page">
     12        <html>
     13    <head>
     14      <title>
     15    <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     16    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     17      </title>
     18      <xsl:call-template name="globalStyle"/>
     19      <xsl:call-template name="pageStyle"/>
     20    </head>
     21          <body>
     22           <div id="globalwrapper">
     23          <xsl:call-template name="response" />
     24          <xsl:call-template name="greenstoneFooter"/>
     25       </div>
     26          </body>
     27        </html>
     28  </xsl:template>
    829 
    930    <xsl:template name="pageTitle">
Note: See TracChangeset for help on using the changeset viewer.