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

Last change on this file since 5381 was 5381, checked in by kjdon, 21 years ago

changed the form 'action' to libraryname, not /gsdl3/libraryname, cos the url doesn't necessarily have gsdl3 in it

  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 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 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
15 <xsl:template name="pageHead">
16 <head>
17 <title><xsl:value-of select="/page/pageResponse/serviceCluster/metadataList/metadata[@name='Title']"/><xsl:text> </xsl:text></title>
18 </head>
19 </xsl:template>
20
21 <xsl:template match="pageResponse">
22 <xsl:variable name="clusterName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
23 <center>
24 <xsl:call-template name="standardPageBanner">
25 <xsl:with-param name="collName" select="$clusterName"/>
26 </xsl:call-template>
27 <xsl:call-template name="navigationBar">
28 <xsl:with-param name="collName" select="$clusterName"/>
29 </xsl:call-template>
30 <xsl:apply-templates select="service">
31 <xsl:with-param name="clusterName" select="$clusterName"/>
32 </xsl:apply-templates>
33 <xsl:apply-templates select="status">
34 <xsl:with-param name="clusterName" select="$clusterName"/>
35 </xsl:apply-templates>
36 </center>
37 </xsl:template>
38
39 <xsl:template match="service">
40 <xsl:param name="clusterName"/>
41 <xsl:variable name='subaction' select="/page/pageRequest/@subaction"/>
42 <xsl:variable name='action' select="/page/pageRequest/@action"/>
43 <xsl:variable name='lang' select="/page/@lang"/>
44 <p/>
45 <form name="BuildForm" method="get" action="{$library_name}">
46 <xsl:apply-templates select="paramList"/>
47 <input type="hidden" name="a" value="{$action}"/>
48 <input type="hidden" name="c" value="{$clusterName}"/>
49 <input type="hidden" name="sa" value="p"/>
50 <input type="hidden" name='l' value='{$lang}'/>
51 <input type="hidden" name="s" value="{@name}"/>
52 <input type="hidden" name="rt" value="r"/>
53 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
54 </form>
55 <xsl:call-template name="dividerBar"/>
56 </xsl:template>
57
58 <xsl:template match="status">
59 <xsl:param name="clusterName"/>
60 <center/>
61 <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.
62 <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>
63 <param name='initial_text'><xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute></param>
64 <param name='initial_code'><xsl:attribute name="value"><xsl:value-of select="@code"/></xsl:attribute></param></applet>
65 <xsl:call-template name="dividerBar"/>
66 </xsl:template>
67
68
69</xsl:stylesheet>
70
Note: See TracBrowser for help on using the repository browser.