source: trunk/gsdl3/web/interfaces/default/transform/about.xsl@ 4253

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

title set to _gsdl_ not _nzdl_

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 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
7 <xsl:include href="style.xsl"/>
8
9 <xsl:output method="html"/>
10
11 <xsl:template name="pageHead">
12 <head>
13 <title><xsl:call-template name="text"><xsl:with-param name="key">gsdl</xsl:with-param></xsl:call-template></title>
14 </head>
15 </xsl:template>
16
17 <xsl:template match="pageResponse">
18 <xsl:variable name="collName" select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/>
19 <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
20 </xsl:template>
21
22<xsl:template match="collection|serviceCluster">
23<xsl:param name="collName">coll-name</xsl:param>
24<xsl:if test='name()="collection"'>
25 <xsl:call-template name="collectionPageBanner">
26 <xsl:with-param name="collName" select="$collName"/>
27 </xsl:call-template>
28</xsl:if>
29<xsl:if test='name()="serviceCluster"'>
30<xsl:call-template name="clusterPageBanner">
31<xsl:with-param name="clusterName" select="$collName"/>
32</xsl:call-template>
33</xsl:if>
34<p/><xsl:apply-templates select="metadataList">
35<xsl:with-param name="collName" select="$collName"/>
36</xsl:apply-templates>
37<p/><xsl:apply-templates select="serviceList">
38<xsl:with-param name="collName" select="$collName"/>
39</xsl:apply-templates>
40</xsl:template>
41
42
43<xsl:template match="metadataList">
44<xsl:param name="collName">coll-name</xsl:param>
45<h2><xsl:call-template name="text"><xsl:with-param name="key">about.description</xsl:with-param></xsl:call-template></h2>
46<p/>
47<table width='537'>
48<xsl:for-each select="metadata">
49<tr valign='top'><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr>
50</xsl:for-each>
51</table>
52</xsl:template>
53
54<xsl:template match="serviceList">
55<xsl:param name="collName">coll-name</xsl:param>
56<xsl:variable name="library" select="ancestor::page/pageExtra/config/library_name"/>
57<h2><xsl:call-template name="text"><xsl:with-param name="key">about.services</xsl:with-param></xsl:call-template></h2>
58<xsl:if test="count(service) > 0">
59<table>
60<xsl:for-each select="service">
61<xsl:variable name="action"><xsl:choose>
62 <xsl:when test="@type='query'">q</xsl:when>
63 <xsl:when test="@type='browse'">b</xsl:when>
64 <xsl:when test="@type='process'">pr</xsl:when>
65 <xsl:when test="@type='applet'">a</xsl:when>
66 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
67</xsl:choose></xsl:variable>
68<xsl:if test="$action !='DO_NOT_DISPLAY'">
69<tr><td><a href="{$library}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:value-of select="@name"/></a></td></tr>
70</xsl:if>
71</xsl:for-each>
72</table>
73</xsl:if>
74<xsl:call-template name="greenBar"/>
75</xsl:template>
76
77
78
79</xsl:stylesheet>
80
Note: See TracBrowser for help on using the repository browser.