source: trunk/gsdl3/web/interfaces/default/transform/home.xsl@ 5391

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

removed some commented code

  • Property svn:keywords set to Author Date Id Revision
File size: 1.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="pageHead">
15 <head>
16 <title>
17 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
18 </title>
19 </head>
20 </xsl:template>
21
22 <xsl:template match="pageResponse">
23 <xsl:call-template name="greenstonePageBanner"/>
24 <xsl:apply-templates select="collectionList"/>
25 <xsl:call-template name="dividerBar"/>
26 <xsl:apply-templates select="serviceClusterList"/>
27 <xsl:call-template name="dividerBar"/>
28 <xsl:apply-templates select="serviceList"/>
29 </xsl:template>
30
31
32 <xsl:template match="collectionList">
33 <xsl:for-each select="collection">
34 <p>
35 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
36 <img width="150" border="1">
37 <xsl:attribute name="src">
38 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/>
39 </xsl:attribute>
40 <xsl:attribute name="alt">
41 <xsl:value-of select="displayItem[@name='name']"/>
42 </xsl:attribute>
43 </img>
44 </a>
45 </p>
46 </xsl:for-each>
47 </xsl:template>
48
49 <xsl:template match="serviceClusterList">
50 <xsl:for-each select="serviceCluster">
51 <p/><a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItem[@name='name']"/></a>
52 </xsl:for-each>
53 </xsl:template>
54
55</xsl:stylesheet>
56
57
Note: See TracBrowser for help on using the repository browser.