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/about.xsl

    r17017 r18316  
    1212  <xsl:output method="html"/> 
    1313 
    14     <!-- the main page layout template is here -->
     14  <!-- the main page layout template is here -->
    1515  <xsl:template match="page">
    16         <html>
    17     <head>
    18       <title>
    19     <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
    20     <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
    21       </title>
    22       <xsl:call-template name="globalStyle"/>
    23       <xsl:call-template name="pageStyle"/>
    24     </head>
    25           <body>
    26            <div id="globalwrapper">
    27           <xsl:call-template name="response" />
    28           <xsl:call-template name="greenstoneFooter"/>
    29        </div>
    30           </body>
    31         </html>
     16    <html>
     17      <head>
     18    <title>
     19      <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     20      <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     21    </title>
     22    <xsl:call-template name="globalStyle"/>
     23    <xsl:call-template name="pageStyle"/>
     24      </head>
     25      <body>
     26    <div id="globalwrapper">
     27      <xsl:call-template name="response" />
     28      <xsl:call-template name="greenstoneFooter"/>
     29    </div>
     30      </body>
     31    </html>
    3232  </xsl:template>
    3333
     
    4040
    4141  <xsl:template match="pageResponse">
    42      <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
     42    <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
    4343    <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
    44    </xsl:template>
     44  </xsl:template>
    4545 
    4646  <xsl:template match="collection|serviceCluster">
     
    5353    </xsl:call-template>     
    5454    <div id="content">
    55         <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
    56         <xsl:apply-templates select="serviceList">
    57           <xsl:with-param name="collName" select="$collName"/>
    58         </xsl:apply-templates>
     55      <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
     56      <xsl:apply-templates select="serviceList">
     57    <xsl:with-param name="collName" select="$collName"/>
     58      </xsl:apply-templates>
    5959    </div>
    6060  </xsl:template>
     
    7474   
    7575    <xsl:if test="service">
    76      <ul id="servicelist">     
    77       <xsl:for-each select="service">
    78         <xsl:variable name="action"><xsl:choose>
     76      <ul id="servicelist">     
     77    <xsl:for-each select="service">
     78      <xsl:variable name="action"><xsl:choose>
    7979          <xsl:when test="@type='query'">q</xsl:when>
    8080          <xsl:when test="@type='browse'">b</xsl:when>
     
    8383          <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
    8484        </xsl:choose></xsl:variable>
    85        <xsl:if test="$action !='DO_NOT_DISPLAY'">
    86            <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>
     85      <xsl:if test="$action !='DO_NOT_DISPLAY'">
     86        <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>
    8787      </xsl:if>
    8888    </xsl:for-each>
    8989      </ul>
    90      </xsl:if>
     90    </xsl:if>
    9191  </xsl:template>
    9292
Note: See TracChangeset for help on using the changeset viewer.