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

    r17017 r18316  
    1515  <xsl:output method="html"/>
    1616 
    17     <!-- the main page layout template is here -->
     17  <!-- the main page layout template is here -->
    1818  <xsl:template match="page">
    19         <html>
    20     <head>
    21       <title>
    22     <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
    23     <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
    24       </title>
    25       <xsl:call-template name="globalStyle"/>
    26       <xsl:call-template name="pageStyle"/>
    27     </head>
    28           <body>
    29            <div id="globalwrapper">
    30           <xsl:call-template name="response" />
    31           <xsl:call-template name="greenstoneFooter"/>
    32        </div>
    33           </body>
    34         </html>
     19    <html>
     20      <head>
     21    <title>
     22      <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     23      <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     24    </title>
     25    <xsl:call-template name="globalStyle"/>
     26    <xsl:call-template name="pageStyle"/>
     27      </head>
     28      <body>
     29    <div id="globalwrapper">
     30      <xsl:call-template name="response" />
     31      <xsl:call-template name="greenstoneFooter"/>
     32    </div>
     33      </body>
     34    </html>
    3535  </xsl:template>
    3636
    37    <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
     37  <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
    3838
    3939  <xsl:template name="pageTitle">
     
    4343  <!-- page specific style goes here -->
    4444  <xsl:template name="pageStyle">       
    45     <!--<xsl:if test="$berryBaskets = 'true'">-->
    4645    <xsl:if test="$berrybasketswitch = 'on'">
    4746      <xsl:call-template name="berryStyleSheet"/>
     
    6160    </xsl:call-template>
    6261    <div id="content">
    63     <xsl:apply-templates select="service">
    64       <xsl:with-param name="collName" select="$collName"/>
    65     </xsl:apply-templates>
    66    
    67     <!--<xsl:if test="$berryBaskets = 'true'">-->
    68     <xsl:if test="$berrybasketswitch = 'on'">
    69       <xsl:call-template name="berrybasket"/>
    70     </xsl:if>
     62      <xsl:apply-templates select="service">
     63    <xsl:with-param name="collName" select="$collName"/>
     64      </xsl:apply-templates>
     65     
     66      <xsl:if test="$berrybasketswitch = 'on'">
     67    <xsl:call-template name="berrybasket"/>
     68      </xsl:if>
    7169      <xsl:if test="contains($requesttype, 'r')">
    72       <xsl:call-template name="query-response">
    73     <xsl:with-param name="collName" select="$collName"/>
    74       </xsl:call-template>
     70    <xsl:call-template name="query-response">
     71      <xsl:with-param name="collName" select="$collName"/>
     72    </xsl:call-template>
    7573      </xsl:if>
    7674     
    7775    </div>
    78    </xsl:template>
     76  </xsl:template>
    7977
    8078
     
    9088    <xsl:if test="documentNodeList">
    9189
    92      <!-- next and prev links at top of results-->
    93    
     90      <!-- next and prev links at top of results-->     
    9491      <xsl:call-template name="resultNavigation">
    9592    <xsl:with-param name="collName" select="$collName"/>
    9693      </xsl:call-template>
    97    
    98       <!-- Display the matching documents --> 
    9994     
     95      <!-- Display the matching documents -->       
    10096      <xsl:call-template name="resultList">
    10197    <xsl:with-param name="collName" select="$collName"/>
    10298      </xsl:call-template>
    103    
     99     
    104100      <!-- next and prev links at bottom of page -->
    105101      <xsl:call-template name="resultNavigation">
     
    114110    <xsl:variable name="subaction" select="../pageRequest/@subaction"/>
    115111    <div id="queryform">
    116     <form name="QueryForm" method="get" action="{$library_name}">
    117       <input type="hidden" name="a" value="q"/>
    118       <input type="hidden" name="sa" value="{$subaction}"/>
    119       <input type="hidden" name="rt" value="rd"/>
    120       <input type="hidden" name="s" value="{@name}"/>
    121       <input type="hidden" name="c" value="{$collName}"/>
    122       <xsl:if test="not(paramList/param[@name='startPage'])">
    123     <input type="hidden" name="startPage" value="1"/>
    124       </xsl:if>
    125       <xsl:apply-templates select="paramList"/>
    126       <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
    127     </form>
     112      <form name="QueryForm" method="get" action="{$library_name}">
     113    <input type="hidden" name="a" value="q"/>
     114    <input type="hidden" name="sa" value="{$subaction}"/>
     115    <input type="hidden" name="rt" value="rd"/>
     116    <input type="hidden" name="s" value="{@name}"/>
     117    <input type="hidden" name="c" value="{$collName}"/>
     118    <xsl:if test="not(paramList/param[@name='startPage'])">
     119      <input type="hidden" name="startPage" value="1"/>
     120    </xsl:if>
     121    <xsl:apply-templates select="paramList"/>
     122    <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
     123      </form>
    128124    </div>
    129125  </xsl:template>
    130    
     126 
    131127</xsl:stylesheet> 
    132128
Note: See TracChangeset for help on using the changeset viewer.