source: main/trunk/greenstone3/web/interfaces/oran/transform/layouts/main.xsl@ 25000

Last change on this file since 25000 was 25000, checked in by sjm84, 12 years ago

Made the main page use the new styles that are compatible with the new visual theme

File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
5 xmlns:java="http://xml.apache.org/xslt/java"
6 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
7 xmlns:gslib="http://www.greenstone.org/skinning"
8 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
9
10 xmlns:lxslt="http://xml.apache.org/xslt"
11 xmlns:result="http://www.example.com/results"
12 xmlns:exsl="http://exslt.org/common"
13
14 extension-element-prefixes="java util result exsl"
15 exclude-result-prefixes="util java util">
16
17 <xsl:import href="header.xsl"/>
18 <xsl:include href="formatmanager.xsl"/>
19
20
21 <!-- put the URL or path of your site here site -->
22 <!-- eg 'http://www.example.com/mysite' or '/mysite' -->
23 <xsl:template name="siteURL"><xsl:value-of select="/page/pageResponse/metadataList/metadata[@name='siteURL']"/></xsl:template>
24
25
26 <!-- the output format for this layout is html -->
27 <!-- <xsl:output method="xml" version="1.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" indent="yes" omit-xml-declaration="yes"/> -->
28 <xsl:output method="html" omit-xml-declaration="yes"/>
29
30 <!-- the main layout is defined here -->
31 <xsl:template match="/">
32
33 <html>
34
35 <head>
36 <!-- ***** in header.xsl ***** -->
37 <xsl:call-template name="create-html-header"/>
38 <xsl:call-template name="berryBasketHeadTags"/>
39 </head>
40
41 <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
42
43 <xsl:call-template name="displayErrorsIfAny"/>
44 <a name="top"><xsl:text> </xsl:text></a>
45
46 <div id="topArea" class="ui-state-default ui-corner-top">
47 <table>
48 <tbody>
49 <tr>
50 <td><div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div></td>
51
52 <!-- ***** in header.xsl ***** -->
53 <td><xsl:call-template name="home-help-preferences"/></td>
54 </tr>
55 </tbody>
56 </table>
57 </div>
58
59 <div id="container" class="ui-corner-all">
60
61 <!-- ***** in header.xsl ***** -->
62 <xsl:call-template name="create-banner"/>
63
64 <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='on')]">
65 <xsl:call-template name="formatmanagerpre"/>
66 </xsl:if>
67
68 <div id="gs_content" class="ui-widget-content">
69 <!--
70 show the content of the page.
71 to customise this part, edit the xsl file for the page you want to edit
72 -->
73 <xsl:apply-templates select="/page"/>
74
75 </div>
76
77 <div id="gs_footer" class="ui-widget-header ui-corner-bottom">
78 <a href="http://www.greenstone.org"><xsl:call-template name="poweredByGS3TextBar"/></a>
79 </div>
80 </div>
81 </body>
82 </html>
83 </xsl:template>
84</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.