Ignore:
Timestamp:
2009-01-06T14:26:10+13:00 (15 years ago)
Author:
kjdon
Message:

indented the xml nicely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/default/transform/classifier.xsl

    r17017 r18316  
    1616  <!-- the main page layout template is here -->
    1717  <xsl:template match="page">
    18         <html>
    19     <head>
    20       <title>
    21     <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
    22     <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
    23       </title>
    24       <xsl:call-template name="globalStyle"/>
    25       <xsl:call-template name="pageStyle"/>
    26     </head>
    27           <body>
    28            <div id="globalwrapper">
    29           <xsl:call-template name="response" />
    30           <xsl:call-template name="greenstoneFooter"/>
    31        </div>
    32           </body>
    33         </html>
     18    <html>
     19      <head>
     20    <title>
     21      <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     22      <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     23    </title>
     24    <xsl:call-template name="globalStyle"/>
     25    <xsl:call-template name="pageStyle"/>
     26      </head>
     27      <body>
     28    <div id="globalwrapper">
     29      <xsl:call-template name="response" />
     30      <xsl:call-template name="greenstoneFooter"/>
     31    </div>
     32      </body>
     33    </html>
    3434  </xsl:template>
    3535 
     
    4242  <!-- page specific style goes here -->
    4343  <xsl:template name="pageStyle">
    44     <!--<xsl:if test="$berryBaskets = 'true'">-->
    4544    <xsl:if test="$berrybasketswitch = 'on'">
    4645      <xsl:call-template name="berryStyleSheet"/> 
     
    6059      <xsl:with-param name="collName" select="$collName"/>
    6160    </xsl:call-template>     
    62  
     61    
    6362    <div id="content">
    6463      <xsl:apply-templates select="service/classifierList">
     
    6766      </xsl:apply-templates>
    6867     
    69     <!--<xsl:if test="$berryBaskets = 'true'">-->
    70     <xsl:if test="$berrybasketswitch = 'on'">
    71       <xsl:call-template name="berrybasket" />
    72     </xsl:if> 
    73     <xsl:apply-templates select="classifier">
    74       <xsl:with-param name="collName" select="$collName"/>
    75       <xsl:with-param name="serviceName" select="$serviceName"/>
    76     </xsl:apply-templates>
     68      <xsl:if test="$berrybasketswitch = 'on'">
     69    <xsl:call-template name="berrybasket" />
     70      </xsl:if> 
     71      <xsl:apply-templates select="classifier">
     72    <xsl:with-param name="collName" select="$collName"/>
     73    <xsl:with-param name="serviceName" select="$serviceName"/>
     74      </xsl:apply-templates>
    7775    </div>
    7876  </xsl:template>
     
    8280    <xsl:param name="serviceName"/>
    8381    <xsl:variable name="selected" select="/page/pageResponse/classifier/@name"/>
    84    <ul id="classifierlist">
    85     <xsl:for-each select="classifier">
    86       <xsl:choose>
    87         <xsl:when test="@name=$selected">
    88              <li id="activeclassifier"><xsl:value-of select="displayItem[@name='name']"/></li>
    89         </xsl:when>
    90         <xsl:otherwise>
    91           <li><a href="{$library_name}?a=b&amp;rt=r&amp;s={$serviceName}&amp;c={$collName}&amp;cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></li></xsl:otherwise></xsl:choose>
    92          
    93     </xsl:for-each>
     82    <ul id="classifierlist">
     83      <xsl:for-each select="classifier">
     84    <xsl:choose>
     85      <xsl:when test="@name=$selected">
     86        <li id="activeclassifier"><xsl:value-of select="displayItem[@name='name']"/></li>
     87      </xsl:when>
     88      <xsl:otherwise>
     89        <li><a href="{$library_name}?a=b&amp;rt=r&amp;s={$serviceName}&amp;c={$collName}&amp;cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></li></xsl:otherwise></xsl:choose>
     90   
     91      </xsl:for-each>
    9492    </ul>
    95    </xsl:template>
     93  </xsl:template>
    9694
    9795</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.