source: trunk/gsdl-documentation/manuals/processing/xml-to-top-index.xsl@ 13861

Last change on this file since 13861 was 13861, checked in by lh92, 17 years ago

updated XSLs

  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE TutorialList [
3 <!ENTITY nbsp "&#160;">
4 <!ENTITY rarr "&#8594;">
5 <!ENTITY mdash "&#8212;">
6]>
7
8<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
9 <xsl:output method="html"/>
10 <xsl:include href="common.xsl"/>
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>
15
16 <xsl:variable name="sourceforgelink">http://prdownloads.sourceforge.net/greenstone</xsl:variable>
17
18 <xsl:variable name="tab">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</xsl:variable>
19 <xsl:template match="Manifest">
20 <html>
21 <head><title>Greenstone Manuals</title></head>
22 <link rel="stylesheet" href="style.css" type="text/css"/>
23 <body>
24 <h1>Greenstone Manuals</h1>
25 <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>
27
28 <div class="note"><xsl:value-of select="note"/></div>
29
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>
31
32 <dl><xsl:apply-templates select="file"><xsl:with-param name="manualNodes" select="document(file/@href)"/></xsl:apply-templates></dl>
33 </xsl:for-each>
34 </body>
35</html>
36</xsl:template>
37
38<xsl:template match="file">
39<xsl:param name="manualNodes"/>
40<dt><xsl:apply-templates select="$manualNodes//Chapter"/></dt>
41</xsl:template>
42
43<xsl:template match="Chapter">
44 <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>
45</xsl:template>
46</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.