Changeset 3788

Show
Ignore:
Timestamp:
05.03.2003 11:50:55 (17 years ago)
Author:
mdewsnip
Message:

collName variable is now obtained from paramList rather than response element. Also used shorter xsl:with-param syntax for specifying values.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/interfaces/default/transform/about.xsl

    r3686 r3788  
    1010 
    1111<xsl:template match="page"> 
    12 <xsl:variable name="collName" select="response/@from"/> 
     12<xsl:variable name="collName" select="request/paramList/param[@name='c']/@value"/> 
    1313<html> 
    1414<xsl:call-template name="greenstoneHead"/> 
     
    2929<xsl:if test='name()="collection"'> 
    3030<xsl:call-template name="collectionPageBanner"> 
    31 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 
    32 <xsl:with-param name="collIcon"><xsl:value-of select="metadataList/metadata[@name='colIcon']"/></xsl:with-param> 
     31<xsl:with-param name="collName" select="$collName"/> 
     32<xsl:with-param name="collIcon" select="metadataList/metadata[@name='colIcon']"/> 
    3333</xsl:call-template> 
    3434</xsl:if> 
    3535<xsl:if test='name()="serviceCluster"'> 
    3636<xsl:call-template name="clusterPageBanner"> 
    37 <xsl:with-param name="clusterName"><xsl:value-of select="$collName"/></xsl:with-param></xsl:call-template> 
     37<xsl:with-param name="clusterName" select="$collName"/> 
     38</xsl:call-template> 
    3839</xsl:if> 
    3940<p/><xsl:apply-templates select="metadataList"> 
    40 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 
     41<xsl:with-param name="collName" select="$collName"/> 
    4142</xsl:apply-templates> 
    4243<p/><xsl:apply-templates select="serviceList"> 
    43 <xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param> 
     44<xsl:with-param name="collName" select="$collName"/> 
    4445</xsl:apply-templates> 
    4546</xsl:template>