[5420] | 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 |
|
---|
| 6 |
|
---|
[5422] | 7 | <xsl:template match="Anchor">
|
---|
| 8 | <p/>
|
---|
| 9 | <img height="20" src="gatherer_small.gif" width="20"/>
|
---|
| 10 | <a name="{@name}"><xsl:text> </xsl:text><xsl:apply-templates/></a>
|
---|
| 11 | <p style="text-align:justify"/>
|
---|
| 12 | </xsl:template>
|
---|
| 13 |
|
---|
| 14 |
|
---|
[5420] | 15 | <xsl:template match="Break">
|
---|
| 16 | <p/>
|
---|
| 17 | </xsl:template>
|
---|
| 18 |
|
---|
[5422] | 19 |
|
---|
[5420] | 20 | <xsl:template match="Contents">
|
---|
| 21 | <p/>
|
---|
[5422] | 22 | <table align="center" border="2" cellpadding="2" width="480" bgcolor="#B0D0B0">
|
---|
| 23 | <tr>
|
---|
| 24 | <td align="center">
|
---|
| 25 | <font face="Verdana" size="4">
|
---|
| 26 | <strong>
|
---|
| 27 | Contents
|
---|
| 28 | </strong>
|
---|
| 29 | </font>
|
---|
| 30 | </td>
|
---|
| 31 | </tr>
|
---|
| 32 |
|
---|
| 33 | <tr>
|
---|
| 34 | <td>
|
---|
| 35 | <table bgcolor="#FFFFFF" border="0" cellpadding="2" width="100%">
|
---|
| 36 | <xsl:apply-templates/>
|
---|
| 37 | </table>
|
---|
| 38 | </td>
|
---|
| 39 | </tr>
|
---|
| 40 | </table>
|
---|
| 41 | <p/>
|
---|
[5420] | 42 | </xsl:template>
|
---|
| 43 |
|
---|
[5422] | 44 |
|
---|
| 45 | <xsl:template match="ContentsGroup">
|
---|
| 46 | <tr>
|
---|
| 47 | <td colspan="3">
|
---|
[5424] | 48 | <a href="#{@linkto}">
|
---|
| 49 | <xsl:variable name="linkTo" select="@linkto"/>
|
---|
| 50 | <xsl:value-of select="parent::Contents/parent::Section/Anchor[@name=$linkTo]"/>
|
---|
| 51 | </a>
|
---|
[5422] | 52 | </td>
|
---|
| 53 | </tr>
|
---|
| 54 |
|
---|
| 55 | <xsl:apply-templates/>
|
---|
| 56 | </xsl:template>
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | <xsl:template match="ContentsItem">
|
---|
| 60 | <xsl:variable name="depth" select="count(ancestor::ContentsItem) + 1"/>
|
---|
| 61 | <tr>
|
---|
| 62 | <td colspan="{$depth}">
|
---|
| 63 | <xsl:text> </xsl:text>
|
---|
| 64 | </td>
|
---|
| 65 | <td colspan="{3 - $depth}">
|
---|
| 66 | <xsl:apply-templates/>
|
---|
| 67 | </td>
|
---|
| 68 | </tr>
|
---|
| 69 | </xsl:template>
|
---|
| 70 |
|
---|
| 71 |
|
---|
[5420] | 72 | <xsl:template match="Document">
|
---|
[5422] | 73 | <xsl:for-each select="Section">
|
---|
| 74 | <xsl:call-template name="processSection">
|
---|
| 75 | <xsl:with-param name="sectionHead" select="position()"/>
|
---|
| 76 | </xsl:call-template>
|
---|
| 77 | </xsl:for-each>
|
---|
[5420] | 78 | </xsl:template>
|
---|
| 79 |
|
---|
[5422] | 80 |
|
---|
[5420] | 81 | <xsl:template match="Reference">
|
---|
[5518] | 82 | <a href="{@target}.htm#{@target}"><xsl:apply-templates/></a>
|
---|
[5420] | 83 | </xsl:template>
|
---|
| 84 |
|
---|
[5422] | 85 |
|
---|
[5420] | 86 | <xsl:template match="Section"/>
|
---|
| 87 |
|
---|
[5422] | 88 |
|
---|
[5420] | 89 | <xsl:template match="Title"/>
|
---|
| 90 |
|
---|
| 91 |
|
---|
| 92 | <xsl:template name="processSection">
|
---|
| 93 | <xsl:param name="sectionHead"/>
|
---|
| 94 |
|
---|
[5422] | 95 | <html>
|
---|
| 96 | <head>
|
---|
| 97 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
|
---|
| 98 | <title>The Greenstone Librarian Interface - Help Pages</title>
|
---|
| 99 | </head>
|
---|
| 100 | <body bgcolor="#E0F0E0">
|
---|
| 101 | <table border="2" bgcolor="#B0D0B0" cellpadding="5" cellspacing="0" width="100%">
|
---|
| 102 | <tr>
|
---|
| 103 | <td align="center" width="15%">
|
---|
| 104 | <img height="45" src="gatherer_medium.gif" width="45"/>
|
---|
| 105 | </td>
|
---|
| 106 | <td align="center" width="*">
|
---|
| 107 | <a name="{@name}">
|
---|
| 108 | <xsl:call-template name="processTitle">
|
---|
| 109 | <xsl:with-param name="sectionNumber" select="$sectionHead"/>
|
---|
| 110 | <xsl:with-param name="sectionTitle" select="Title"/>
|
---|
| 111 | </xsl:call-template>
|
---|
| 112 | </a>
|
---|
| 113 | </td>
|
---|
| 114 | <td align="center" width="15%">
|
---|
| 115 | <img height="45" src="gatherer_medium.gif" width="45"/>
|
---|
| 116 | </td>
|
---|
| 117 | </tr>
|
---|
| 118 | </table>
|
---|
[5420] | 119 |
|
---|
[5422] | 120 | <xsl:apply-templates/>
|
---|
| 121 | </body>
|
---|
| 122 | </html>
|
---|
[5420] | 123 |
|
---|
| 124 | <xsl:for-each select="Section">
|
---|
| 125 | <xsl:call-template name="processSection">
|
---|
| 126 | <xsl:with-param name="sectionHead" select="concat($sectionHead, '.', position())"/>
|
---|
| 127 | </xsl:call-template>
|
---|
| 128 | </xsl:for-each>
|
---|
| 129 | </xsl:template>
|
---|
| 130 |
|
---|
[5422] | 131 |
|
---|
[5420] | 132 | <xsl:template name="processTitle">
|
---|
| 133 | <xsl:param name="sectionNumber"/>
|
---|
| 134 | <xsl:param name="sectionTitle"/>
|
---|
| 135 |
|
---|
[5422] | 136 | <font face="Verdana" size="5">
|
---|
| 137 | <strong>
|
---|
| 138 | <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/>
|
---|
| 139 | </strong>
|
---|
| 140 | </font>
|
---|
[5420] | 141 | </xsl:template>
|
---|
| 142 |
|
---|
| 143 | </xsl:stylesheet> |
---|