source: other-projects/tipple-android/i-greenstone-server-files/greenstone/webapps/greenstone3/interfaces/basic-client-xslt/transform/help.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: 2.3 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 xmlns:java="http://xml.apache.org/xslt/java"
5 extension-element-prefixes="java"
6 exclude-result-prefixes="java">
7
8 <!-- style includes global params interface_name, library_name -->
9 <xsl:include href="style.xsl"/>
10
11 <xsl:output method="html"/>
12
13 <!-- the main page layout template is here -->
14 <xsl:template match="page">
15 <html>
16 <head>
17 <title>
18 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
19 <xsl:text> </xsl:text>
20 </title>
21 <xsl:call-template name="globalStyle"/>
22 <xsl:call-template name="pageStyle"/>
23 </head>
24 <body>
25 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
26 <div id="page-wrapper">
27 <xsl:call-template name="response" />
28 <xsl:call-template name="greenstoneFooter"/>
29 </div>
30 <xsl:call-template name="pageTitle"/>
31 </body>
32 </html>
33 </xsl:template>
34
35 <xsl:template name="pageTitle">
36 <xsl:choose>
37 <xsl:when test="/page/pageResponse/*/displayItem[@name='name']">
38 <span>
39 <xsl:attribute name="class">
40 <xsl:text>getTextFor null document.title.text:'</xsl:text>
41 <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>
42 <xsl:text>'</xsl:text>
43 </xsl:attribute>
44 </span>
45 </xsl:when>
46 <xsl:otherwise>
47 <span class="getTextFor null document.title.gsdl">&amp;amp;nbsp;</span>
48 </xsl:otherwise>
49 </xsl:choose>
50 <span class="getTextFor null document.title.text:'&#160;:&#160;'[a],document.title.help_t[a]">&amp;amp;nbsp;</span>
51 </xsl:template>
52
53 <!-- page specific style goes here -->
54 <xsl:template name="pageStyle"/>
55
56
57 <xsl:template match="pageResponse">
58 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
59 <xsl:call-template name="standardPageBanner">
60 <xsl:with-param name="collName" select="$collName"/>
61 <xsl:with-param name="pageType">help</xsl:with-param>
62 </xsl:call-template>
63 <xsl:call-template name="navigationBar">
64 <xsl:with-param name="collName" select="$collName"/>
65 </xsl:call-template>
66
67 some help text goes here
68 </xsl:template>
69
70</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.