source: trunk/gsdl3/web/interfaces/default/transform/process.xsl@ 8529

Last change on this file since 8529 was 8526, checked in by kjdon, 20 years ago

tidied up the style stuff - now uses css. pageHead is now defined by style, with pageTitle and pageStyle in each page. got rid of the attribute sets and colors in style - uses css instead.

  • Property svn:keywords set to Author Date Id Revision
File size: 3.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 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 extension-element-prefixes="java util"
7 exclude-result-prefixes="java util">
8
9 <xsl:include href="style.xsl"/>
10 <xsl:include href="service-params.xsl"/>
11
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageTitle">
15 <xsl:value-of select="/page/pageResponse/serviceCluster/metadataList/metadata[@name='Title']"/>
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21
22 <xsl:template match="pageResponse">
23 <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
24 <center>
25 <xsl:call-template name="standardPageBanner">
26 <xsl:with-param name="collName" select="$clusterName"/>
27 </xsl:call-template>
28 <xsl:call-template name="navigationBar">
29 <xsl:with-param name="collName" select="$clusterName"/>
30 </xsl:call-template>
31 <xsl:apply-templates select="service">
32 <xsl:with-param name="clusterName" select="$clusterName"/>
33 </xsl:apply-templates>
34 <xsl:apply-templates select="status">
35 <xsl:with-param name="clusterName" select="$clusterName"/>
36 </xsl:apply-templates>
37 </center>
38 </xsl:template>
39
40 <xsl:template match="service">
41 <xsl:param name="clusterName"/>
42 <xsl:variable name='subaction' select="/page/pageRequest/@subaction"/>
43 <xsl:variable name='action' select="/page/pageRequest/@action"/>
44 <xsl:variable name='lang' select="/page/@lang"/>
45 <p/>
46 <form name="BuildForm" method="get" action="{$library_name}">
47 <xsl:apply-templates select="paramList"/>
48 <input type="hidden" name="a" value="{$action}"/>
49 <input type="hidden" name="c" value="{$clusterName}"/>
50 <input type="hidden" name="sa" value="p"/>
51 <input type="hidden" name='l' value='{$lang}'/>
52 <input type="hidden" name="s" value="{@name}"/>
53 <input type="hidden" name="rt" value="r"/>
54 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
55 </form>
56 <xsl:call-template name="dividerBar"/>
57 </xsl:template>
58
59 <xsl:template match="status">
60 <xsl:param name="clusterName"/>
61 <center/>
62 <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.
63 <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>
64 <param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute></param>
65 <param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute></param></applet>
66 <xsl:call-template name="dividerBar"/>
67 </xsl:template>
68
69
70</xsl:stylesheet>
71
Note: See TracBrowser for help on using the repository browser.