- Timestamp:
- 2008-10-08T13:59:48+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/manuals/processing/xml-to-top-index.xsl
r14099 r17494 10 10 <xsl:include href="common.xsl"/> 11 11 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> 15 16 16 17 <xsl:variable name="sourceforgelink">http://prdownloads.sourceforge.net/greenstone</xsl:variable> 18 <xsl:variable name="manual-suffix">-1</xsl:variable> 17 19 18 20 <xsl:variable name="tab"> </xsl:variable> … … 24 26 <h1>Greenstone Manuals</h1> 25 27 <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> 27 36 28 37 <div class="note"><xsl:value-of select="note"/></div> 29 38 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> 31 46 32 47 <dl><xsl:apply-templates select="file"><xsl:with-param name="manualNodes" select="document(file/@href)"/></xsl:apply-templates></dl> … … 54 69 55 70 <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> 57 77 </xsl:template> 58 78 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.