1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
3 |
|
---|
4 | <xsl:output method="html"/>
|
---|
5 | <xsl:include href="common.xsl"/>
|
---|
6 |
|
---|
7 | <xsl:variable name="es">español</xsl:variable>
|
---|
8 | <xsl:variable name="fr">français</xsl:variable>
|
---|
9 | <xsl:variable name="ru">ÑÑÑÑкОй</xsl:variable>
|
---|
10 |
|
---|
11 | <xsl:template match="Manifest">
|
---|
12 | <html>
|
---|
13 | <head><title>Greenstone Manuals</title></head>
|
---|
14 | <link rel="stylesheet" href="style.css" type="text/css"/>
|
---|
15 | <body>
|
---|
16 | <h1>Greenstone Manuals</h1>
|
---|
17 | <xsl:for-each select="Manual">
|
---|
18 | <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>
|
---|
19 | <div class="comment"><a class="comment" href="en/html/{@id}_en_all.html">HTML version</a><xsl:text> </xsl:text><a class="comment" href="es/html/{@id}_es_all.html"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a class="comment" href="fr/html/{@id}_fr_all.html"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a class="comment" href="ru/html/{@id}_ru_all.html"><xsl:value-of select="$ru"/></a></div>
|
---|
20 | <div class="comment"><a class="comment" href="en/pdf/{@id}_en.pdf">PDF version</a><xsl:text> </xsl:text><a class="comment" href="es/pdf/{@id}_es.pdf"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a class="comment" href="fr/pdf/{@id}_fr.pdf"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a class="comment" href="ru/pdf/{@id}_ru.pdf"><xsl:value-of select="$ru"/></a></div>
|
---|
21 | <dl><xsl:apply-templates select="file"><xsl:with-param name="manualNodes" select="document(file/@href)"/></xsl:apply-templates></dl>
|
---|
22 | </xsl:for-each>
|
---|
23 | </body>
|
---|
24 | </html>
|
---|
25 | </xsl:template>
|
---|
26 |
|
---|
27 | <xsl:template match="file">
|
---|
28 | <xsl:param name="manualNodes"/>
|
---|
29 | <dt><xsl:apply-templates select="$manualNodes//Chapter"/></dt>
|
---|
30 | </xsl:template>
|
---|
31 |
|
---|
32 | <xsl:template match="Chapter">
|
---|
33 | <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>
|
---|
34 | </xsl:template>
|
---|
35 | </xsl:stylesheet>
|
---|