source: greenstone3/trunk/web/interfaces/default/transform/about.xsl@ 14125

Last change on this file since 14125 was 13505, checked in by shaoqun, 17 years ago

replaced some div tags with ul and li tags

  • 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 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
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageTitle">
15 <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21 <xsl:template match="pageResponse">
22 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
23 <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
24 </xsl:template>
25
26 <xsl:template match="collection|serviceCluster">
27 <xsl:param name="collName"/>
28 <xsl:call-template name="standardPageBanner">
29 <xsl:with-param name="collName" select="$collName"/>
30 </xsl:call-template>
31 <xsl:call-template name="navigationBar">
32 <xsl:with-param name="collName" select="$collName"/>
33 </xsl:call-template>
34 <div id="content">
35 <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
36 <xsl:apply-templates select="serviceList">
37 <xsl:with-param name="collName" select="$collName"/>
38 </xsl:apply-templates>
39 </div>
40 </xsl:template>
41
42
43 <xsl:template match="serviceList">
44 <xsl:param name="collName"/>
45 <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h3>
46 <xsl:choose>
47 <xsl:when test="service">
48 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.servicehelp')"/>
49 </xsl:when>
50 <xsl:otherwise>
51 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.noservices')"/>
52 </xsl:otherwise>
53 </xsl:choose>
54
55 <xsl:if test="service">
56 <ul id="servicelist">
57 <xsl:for-each select="service">
58 <xsl:variable name="action"><xsl:choose>
59 <xsl:when test="@type='query'">q</xsl:when>
60 <xsl:when test="@type='browse'">b</xsl:when>
61 <xsl:when test="@type='process'">pr</xsl:when>
62 <xsl:when test="@type='applet'">a</xsl:when>
63 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
64 </xsl:choose></xsl:variable>
65 <xsl:if test="$action !='DO_NOT_DISPLAY'">
66 <li><a href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li>
67 </xsl:if>
68 </xsl:for-each>
69 </ul>
70 </xsl:if>
71 </xsl:template>
72
73</xsl:stylesheet>
74
Note: See TracBrowser for help on using the repository browser.