Ignore:
Timestamp:
2008-10-08T13:59:48+13:00 (16 years ago)
Author:
anna
Message:

Updated tutorials and associated files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/manuals/processing/xml-to-top-index.xsl

    r14099 r17494  
    1010  <xsl:include href="common.xsl"/>
    1111 
    12   <xsl:variable name="es">español</xsl:variable>
    13   <xsl:variable name="fr">français</xsl:variable>
    14   <xsl:variable name="ru">русскОй</xsl:variable>
     12  <xsl:variable name="es">Español</xsl:variable>
     13  <xsl:variable name="fr">Français</xsl:variable>
     14  <xsl:variable name="ru">РусскОй</xsl:variable>
     15  <xsl:variable name="ar">عرؚي</xsl:variable>
    1516 
    1617  <xsl:variable name="sourceforgelink">http://prdownloads.sourceforge.net/greenstone</xsl:variable>
     18  <xsl:variable name="manual-suffix">-1</xsl:variable>
    1719     
    1820  <xsl:variable name="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</xsl:variable>
     
    2426      <h1>Greenstone Manuals</h1>
    2527      <xsl:for-each select="Manual">
    26         <h3><a class="title" href="en/html/{@id}_en_index.html"><xsl:apply-templates select="@name"/></a><xsl:text>  </xsl:text><a class="title" href="es/html/{@id}_es_index.html"><xsl:value-of select="$es"/></a><xsl:text>  </xsl:text><a class="title" href="fr/html/{@id}_fr_index.html"><xsl:value-of select="$fr"/></a><xsl:text>  </xsl:text><a class="title" href="ru/html/{@id}_ru_index.html"><xsl:value-of select="$ru"/></a></h3>
     28      <!-- language name in the first row-->
     29      <h3>
     30        <a class="title" href="en/html/{@id}_en_index.html"><xsl:apply-templates select="@name"/></a>
     31        <xsl:text>  </xsl:text><a class="title" href="es/html/{@id}_es_index.html"><xsl:value-of select="$es"/></a>
     32        <xsl:text>  </xsl:text><a class="title" href="fr/html/{@id}_fr_index.html"><xsl:value-of select="$fr"/></a>
     33        <xsl:text>  </xsl:text><a class="title" href="ru/html/{@id}_ru_index.html"><xsl:value-of select="$ru"/></a>
     34        <xsl:if test="@id='Install'"><xsl:text>  </xsl:text><a class="title" href="ar/html/{@id}_ar_index.html"><xsl:value-of select="$ar"/></a></xsl:if>
     35      </h3>
    2736       
    28         <div class="note"><xsl:value-of select="note"/></div>
     37      <div class="note"><xsl:value-of select="note"/></div>
    2938       
    30         <div class="comment">Printable version: english (<a class="comment" href="en/html/{@id}_en_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-en.pdf">PDF</a>)<xsl:value-of select="$tab"/><xsl:value-of select="$es"/> (<a class="comment" href="es/html/{@id}_es_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-es.pdf">PDF</a>)<xsl:value-of select="$tab"/><xsl:value-of select="$fr"/> (<a class="comment" href="fr/html/{@id}_fr_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-fr.pdf">PDF</a>)<xsl:value-of select="$tab"/><xsl:value-of select="$ru"/> (<a class="comment" href="ru/html/{@id}_ru_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-ru.pdf">PDF</a>)</div>
     39      <div class="comment">Printable version:
     40        English (<a class="comment" href="en/html/{@id}_en_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-en{$manual-suffix}.pdf">PDF</a>)
     41        <xsl:value-of select="$tab"/><xsl:value-of select="$es"/> (<a class="comment" href="es/html/{@id}_es_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-es{$manual-suffix}.pdf">PDF</a>)
     42        <xsl:value-of select="$tab"/><xsl:value-of select="$fr"/> (<a class="comment" href="fr/html/{@id}_fr_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-fr{$manual-suffix}.pdf">PDF</a>)
     43        <xsl:value-of select="$tab"/><xsl:value-of select="$ru"/> (<a class="comment" href="ru/html/{@id}_ru_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-ru{$manual-suffix}.pdf">PDF</a>)
     44        <xsl:if test="@id='Install'"><xsl:value-of select="$tab"/><xsl:value-of select="$ar"/> (<a class="comment" href="ar/html/{@id}_ar_all.html">HTML</a><xsl:text>  </xsl:text><a class="comment" href="{$sourceforgelink}/{@id}-ar{$manual-suffix}.pdf">PDF</a>)</xsl:if>     
     45      </div>
    3146       
    3247        <dl><xsl:apply-templates select="file"><xsl:with-param name="manualNodes" select="document(file/@href)"/></xsl:apply-templates></dl>
     
    5469
    5570<xsl:template match="Chapter">
    56     <dd><a href="en/html/Chapter_{@id}.htm"><xsl:apply-templates select="Title/Text"/></a><xsl:text>  </xsl:text>[<a href="es/html/Chapter_{@id}.htm"><xsl:value-of select="$es"/></a><xsl:text>  </xsl:text><a href="fr/html/Chapter_{@id}.htm"><xsl:value-of select="$fr"/></a><xsl:text>  </xsl:text><a href="ru/html/Chapter_{@id}.htm"><xsl:value-of select="$ru"/></a>]</dd> 
     71    <dd>
     72        <a href="en/html/Chapter_{@id}.htm"><xsl:apply-templates select="Title/Text"/></a>
     73        <xsl:text>  </xsl:text>[<a href="es/html/Chapter_{@id}.htm"><xsl:value-of select="$es"/></a>
     74        <xsl:text>  </xsl:text><a href="fr/html/Chapter_{@id}.htm"><xsl:value-of select="$fr"/></a>
     75        <xsl:text>  </xsl:text><a href="ru/html/Chapter_{@id}.htm"><xsl:value-of select="$ru"/></a>
     76        <xsl:if test="//@id='Install'"><xsl:text>  </xsl:text><a href="ar/html/Chapter_{@id}.htm"><xsl:value-of select="$ar"/></a></xsl:if>]</dd> 
    5777</xsl:template>
    5878</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.