source: main/trunk/greenstone3/web/interfaces/basic/transform/process.xsl@ 25877

Last change on this file since 25877 was 23972, checked in by sjm84, 13 years ago

Moving traditional to default-client-xslt

File size: 4.0 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 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 extension-element-prefixes="java util"
7 exclude-result-prefixes="java util">
8
9 <!-- style includes global params interface_name, library_name -->
10 <xsl:include href="style.xsl"/>
11 <xsl:include href="service-params.xsl"/>
12
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 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
28 <div id="page-wrapper">
29 <xsl:call-template name="response" />
30 <xsl:call-template name="greenstoneFooter"/>
31 </div>
32 </body>
33 </html>
34 </xsl:template>
35
36 <xsl:template name="pageTitle">
37 <xsl:value-of select="/page/pageResponse/serviceCluster/metadataList/metadata[@name='Title']"/>
38 </xsl:template>
39
40 <!-- page specific style goes here -->
41 <xsl:template name="pageStyle"/>
42
43
44 <xsl:template match="pageResponse">
45 <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
46 <center>
47 <xsl:call-template name="standardPageBanner">
48 <xsl:with-param name="collName" select="$clusterName"/>
49 </xsl:call-template>
50 <xsl:call-template name="navigationBar">
51 <xsl:with-param name="collName" select="$clusterName"/>
52 </xsl:call-template>
53 <xsl:apply-templates select="service">
54 <xsl:with-param name="clusterName" select="$clusterName"/>
55 </xsl:apply-templates>
56 <xsl:apply-templates select="status">
57 <xsl:with-param name="clusterName" select="$clusterName"/>
58 </xsl:apply-templates>
59 </center>
60 </xsl:template>
61
62 <xsl:template match="service">
63 <xsl:param name="clusterName"/>
64 <xsl:variable name='subaction' select="/page/pageRequest/@subaction"/>
65 <xsl:variable name='action' select="/page/pageRequest/@action"/>
66 <xsl:variable name='lang' select="/page/@lang"/>
67 <p/>
68 <form name="BuildForm" method="get" action="{$library_name}">
69 <xsl:apply-templates select="paramList"/>
70 <input type="hidden" name="a" value="{$action}"/>
71 <input type="hidden" name="c" value="{$clusterName}"/>
72 <input type="hidden" name="sa" value="p"/>
73 <input type="hidden" name='l' value='{$lang}'/>
74 <input type="hidden" name="s" value="{@name}"/>
75 <input type="hidden" name="rt" value="r"/>
76 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
77 </form>
78 <xsl:call-template name="dividerBar"/>
79 </xsl:template>
80
81 <xsl:template match="status">
82 <xsl:param name="clusterName"/>
83 <center/>
84 <applet code="org.greenstone.gsdl3.build.StatusDisplay.class" codebase='lib' archive='gsdl3.jar, xercesImpl.jar, xml-apis.jar' width='600' height='150'>The status display applet.
85 <param name='library'><xsl:attribute name="value"><xsl:value-of select='$library_name'/>?a=pr&amp;rt=s&amp;c=<xsl:value-of select='$clusterName'/>&amp;s=<xsl:value-of select='/page/pageResponse/service/@name'/>&amp;o=xml&amp;ro=1&amp;l=<xsl:value-of select='/page/@lang'/>&amp;pid=<xsl:value-of select="@pid"/><xsl:apply-templates select="/page/pageResponse/service/paramList" mode="cgi"/></xsl:attribute></param>
86 <param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute></param>
87 <param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute></param></applet>
88 <xsl:call-template name="dividerBar"/>
89 </xsl:template>
90
91
92</xsl:stylesheet>
93
Note: See TracBrowser for help on using the repository browser.