1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
3 |
|
---|
4 | <xsl:output method="html"/>
|
---|
5 |
|
---|
6 | <xsl:template match="HelpFile">
|
---|
7 | <html>
|
---|
8 | <head>
|
---|
9 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
|
---|
10 | <title>The Gatherer - Help Pages</title>
|
---|
11 | </head>
|
---|
12 | <body bgcolor="#E0F0E0" link="#000000" vlink="#000000">
|
---|
13 | <table border="2" bgcolor="#B0D0B0" cellpadding="5" cellspacing="0" width="100%">
|
---|
14 | <xsl:apply-templates/>
|
---|
15 | </table>
|
---|
16 | </body>
|
---|
17 | </html>
|
---|
18 | </xsl:template>
|
---|
19 |
|
---|
20 | <xsl:template match="Header">
|
---|
21 | <tr>
|
---|
22 | <td align="center" width="15%">
|
---|
23 | <img src="gatherer_medium.gif" height="45" width="45"/>
|
---|
24 | </td>
|
---|
25 | <td align="center" width="*">
|
---|
26 | <font face="Verdana" size="4">
|
---|
27 | <strong>
|
---|
28 | <xsl:apply-templates/>
|
---|
29 | </strong>
|
---|
30 | </font>
|
---|
31 | </td>
|
---|
32 | <td align="center" width="15%">
|
---|
33 | <img src="gatherer_medium.gif" height="45" width="45"/>
|
---|
34 | </td>
|
---|
35 | </tr>
|
---|
36 | </xsl:template>
|
---|
37 |
|
---|
38 | <!-- The document description -->
|
---|
39 | <xsl:template match="Description">
|
---|
40 | <tr bgcolor="#E0F0E0">
|
---|
41 | <td colspan="3" width="100%">
|
---|
42 | <font face="Verdana" size="3">
|
---|
43 | <xsl:apply-templates/>
|
---|
44 | </font>
|
---|
45 | </td>
|
---|
46 | </tr>
|
---|
47 | </xsl:template>
|
---|
48 |
|
---|
49 | <!-- The document contents -->
|
---|
50 | <xsl:template match="Contents">
|
---|
51 | <tr bgcolor="#E0F0E0">
|
---|
52 | <td align="center" colspan="3" width="100%">
|
---|
53 | <table border="2" cellpadding="2" width="480" bgcolor="#B0D0B0">
|
---|
54 | <tr>
|
---|
55 | <td align="center" width="100%">
|
---|
56 | <font face="Verdana" size="3">
|
---|
57 | <strong>Contents</strong>
|
---|
58 | </font>
|
---|
59 | </td>
|
---|
60 | </tr>
|
---|
61 | <tr>
|
---|
62 | <td width="100%">
|
---|
63 | <table background="gatherer.gif" bgcolor="#FFFFFF" border="0" cellpadding="2" width="100%">
|
---|
64 | <xsl:apply-templates/>
|
---|
65 | </table>
|
---|
66 | </td>
|
---|
67 | </tr>
|
---|
68 | </table>
|
---|
69 | </td>
|
---|
70 | </tr>
|
---|
71 | </xsl:template>
|
---|
72 |
|
---|
73 | <xsl:template match="Section">
|
---|
74 | <tr>
|
---|
75 | <td colspan="3">
|
---|
76 | <font face="Verdana" size="3">
|
---|
77 | <strong>
|
---|
78 | <xsl:choose>
|
---|
79 | <xsl:when test="@type='s'">
|
---|
80 | Simple instructions
|
---|
81 | </xsl:when>
|
---|
82 | <xsl:when test="@type='a'">
|
---|
83 | Advanced instructions
|
---|
84 | </xsl:when>
|
---|
85 | <xsl:when test="@type='q'">
|
---|
86 | Problems and Solutions
|
---|
87 | </xsl:when>
|
---|
88 | </xsl:choose>
|
---|
89 | </strong>
|
---|
90 | </font>
|
---|
91 | </td>
|
---|
92 | </tr>
|
---|
93 | <xsl:apply-templates/>
|
---|
94 | </xsl:template>
|
---|
95 |
|
---|
96 | <xsl:template match="SubSection/SubSection">
|
---|
97 | <tr>
|
---|
98 | <td width="10">
|
---|
99 | </td>
|
---|
100 | <td width="10">
|
---|
101 | </td>
|
---|
102 | <td>
|
---|
103 | <font face="Verdana" size="3">
|
---|
104 | <xsl:apply-templates/>
|
---|
105 | </font>
|
---|
106 | </td>
|
---|
107 | </tr>
|
---|
108 | </xsl:template>
|
---|
109 |
|
---|
110 | <xsl:template match="SubSection">
|
---|
111 | <tr>
|
---|
112 | <td width="10">
|
---|
113 | </td>
|
---|
114 | <td colspan="2">
|
---|
115 | <font face="Verdana" size="3">
|
---|
116 | <xsl:apply-templates/>
|
---|
117 | </font>
|
---|
118 | </td>
|
---|
119 | </tr>
|
---|
120 | </xsl:template>
|
---|
121 |
|
---|
122 |
|
---|
123 | <!-- The text block -->
|
---|
124 | <xsl:template match="Text">
|
---|
125 | <tr bgcolor="#E0F0E0">
|
---|
126 | <td colspan="3" width="100%">
|
---|
127 | <img src="gatherer_small.gif" height="20" width="20"/>
|
---|
128 | <font face="Verdana" size="3">
|
---|
129 | <u>
|
---|
130 | <xsl:choose>
|
---|
131 | <xsl:when test="@type='s'">
|
---|
132 | Simple Instructions:
|
---|
133 | </xsl:when>
|
---|
134 | <xsl:when test="@type='a'">
|
---|
135 | Advanced Instructions:
|
---|
136 | </xsl:when>
|
---|
137 | </xsl:choose>
|
---|
138 | </u>
|
---|
139 | <xsl:apply-templates/>
|
---|
140 | </font>
|
---|
141 | </td>
|
---|
142 | </tr>
|
---|
143 | </xsl:template>
|
---|
144 |
|
---|
145 | <xsl:template match="QuestionBlock">
|
---|
146 | <tr bgcolor="#E0F0E0">
|
---|
147 | <td colspan="3" width="100%">
|
---|
148 | <img height="20" src="gatherer_small.gif" width="20"/>
|
---|
149 | <font face="Verdana" size="3">
|
---|
150 | <u>Problems and Solutions:</u>
|
---|
151 | <xsl:apply-templates/>
|
---|
152 | </font>
|
---|
153 | </td>
|
---|
154 | </tr>
|
---|
155 | </xsl:template>
|
---|
156 |
|
---|
157 | <xsl:template match="Question">
|
---|
158 | <p style="text-align:justify">
|
---|
159 | <i>
|
---|
160 | <xsl:apply-templates/>
|
---|
161 | </i>
|
---|
162 | </p>
|
---|
163 | </xsl:template>
|
---|
164 |
|
---|
165 | <!-- A paragraph block -->
|
---|
166 | <xsl:template match="Para">
|
---|
167 | <p style="text-align:justify">
|
---|
168 | <xsl:apply-templates/>
|
---|
169 | </p>
|
---|
170 | </xsl:template>
|
---|
171 |
|
---|
172 | </xsl:stylesheet> |
---|