source: trunk/gsdl3/web/interfaces/classic/transform/home.xsl@ 13254

Last change on this file since 13254 was 13254, checked in by shaoqun, 16 years ago

now uses <div> to make changing styles easier

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