1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE TutorialList [
|
---|
3 | <!ENTITY nbsp " ">
|
---|
4 | <!ENTITY rarr "→">
|
---|
5 | <!ENTITY mdash "—">
|
---|
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"> </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 |
|
---|
35 | <hr/>
|
---|
36 | <div style="text-align:center;">
|
---|
37 | <xsl:apply-templates select="Manual[1]/file" mode="copyright">
|
---|
38 | <xsl:with-param name="manualNodes" select="document(Manual[1]/file/@href)"/>
|
---|
39 | </xsl:apply-templates>
|
---|
40 | </div>
|
---|
41 | </body>
|
---|
42 | </html>
|
---|
43 | </xsl:template>
|
---|
44 |
|
---|
45 | <xsl:template match="file">
|
---|
46 | <xsl:param name="manualNodes"/>
|
---|
47 | <dt><xsl:apply-templates select="$manualNodes//Chapter"/></dt>
|
---|
48 | </xsl:template>
|
---|
49 |
|
---|
50 | <xsl:template match="file" mode="copyright">
|
---|
51 | <xsl:param name="manualNodes"/>
|
---|
52 | <xsl:apply-templates select="$manualNodes/Manual/Section[@id='copyright']/Content"/>
|
---|
53 | </xsl:template>
|
---|
54 |
|
---|
55 | <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>
|
---|
57 | </xsl:template>
|
---|
58 | </xsl:stylesheet>
|
---|