source: other-projects/tipple-android/i-greenstone-server-files/greenstone/webapps/greenstone3/interfaces/default/transform/layouts/main.xsl@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

  • Property svn:mime-type set to application/xml
File size: 3.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <xsl:template match="/">
31 <xsl:call-template name="mainTemplate"/>
32 </xsl:template>
33
34 <!-- the main layout is defined here -->
35 <xsl:template name="mainTemplate">
36
37 <html>
38
39 <head>
40 <!-- ***** in header.xsl ***** -->
41 <xsl:call-template name="create-html-header"/>
42 <xsl:call-template name="berryBasketHeadTags"/>
43 </head>
44
45 <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
46
47 <!--<xsl:call-template name="displayErrorsIfAny"/>-->
48 <a name="top"><xsl:text> </xsl:text></a>
49
50 <div id="topArea" class="ui-state-default ui-corner-top">
51 <table>
52 <tbody>
53 <tr>
54 <td><div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div></td>
55
56 <!-- ***** in header.xsl ***** -->
57 <td><xsl:call-template name="home-help-preferences"/></td>
58 </tr>
59 </tbody>
60 </table>
61 </div>
62
63 <div id="container" class="ui-corner-all">
64
65 <!-- ***** in header.xsl ***** -->
66 <xsl:call-template name="create-banner"/>
67
68 <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='on')]">
69 <xsl:call-template name="formatmanagerpre"/>
70 </xsl:if>
71
72 <div id="gs_content" class="ui-widget-content">
73 <!--
74 show the content of the page.
75 to customise this part, edit the xsl file for the page you want to edit
76 -->
77 <xsl:apply-templates select="/page"/>
78
79 </div>
80
81 <xsl:call-template name="gs_footer"/>
82 </div>
83 </body>
84 </html>
85 </xsl:template>
86
87 <!-- Template controlling the footer. -->
88 <xsl:template name="gs_footer">
89 <div id="gs_footer" class="ui-widget-header ui-corner-bottom">
90 <a href="http://www.greenstone.org/greenstone3-home"><xsl:call-template name="poweredByGS3TextBar"/></a>
91 </div>
92 </xsl:template>
93
94
95
96</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.