1
|
<?xml version="1.0"?>
|
2
|
<!--
|
3
|
* '$RCSfile$'
|
4
|
* Authors: Matthew Brooke
|
5
|
* Copyright: 2000 Regents of the University of California and the
|
6
|
* National Center for Ecological Analysis and Synthesis
|
7
|
* For Details: http://www.nceas.ucsb.edu/
|
8
|
*
|
9
|
* '$Author: tao $'
|
10
|
* '$Date: 2000-11-20 05:14:04 -0800 (Mon, 20 Nov 2000) $'
|
11
|
* '$Revision: 553 $'
|
12
|
*
|
13
|
* This program is free software; you can redistribute it and/or modify
|
14
|
* it under the terms of the GNU General Public License as published by
|
15
|
* the Free Software Foundation; either version 2 of the License, or
|
16
|
* (at your option) any later version.
|
17
|
*
|
18
|
* This program is distributed in the hope that it will be useful,
|
19
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
* GNU General Public License for more details.
|
22
|
*
|
23
|
* You should have received a copy of the GNU General Public License
|
24
|
* along with this program; if not, write to the Free Software
|
25
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26
|
*
|
27
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
28
|
* convert an XML file that is valid with respect to the eml-variable.dtd
|
29
|
* module of the Ecological Metadata Language (EML) into an HTML format
|
30
|
* suitable for rendering with modern web browsers.
|
31
|
-->
|
32
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
33
|
|
34
|
<xsl:import href="eml-protocol-2.0.0beta6-@name@.xsl"/>
|
35
|
<xsl:import href="eml-coverage-2.0.0beta6-@name@.xsl"/>
|
36
|
|
37
|
<xsl:output method="html" encoding="iso-8859-1"/>
|
38
|
|
39
|
<xsl:template match="/">
|
40
|
<html>
|
41
|
<head>
|
42
|
<link rel="stylesheet" type="text/css" href="{$stylePath}/{$qformat}.css" />
|
43
|
<style type="text/css">
|
44
|
@import url(@style-path@/sbclter-advanced.css);
|
45
|
</style>
|
46
|
<script language="JavaScript">
|
47
|
<![CDATA[
|
48
|
function submitform(action,form_ref) {
|
49
|
form_ref.action.value=action;
|
50
|
form_ref.abstractpath.value="";
|
51
|
form_ref.qformat.value="sbclter";
|
52
|
form_ref.submit();
|
53
|
}
|
54
|
function submitform1(action, abstractpath, form_ref) {
|
55
|
form_ref.action.value=action;
|
56
|
form_ref.abstractpath.value=abstractpath;
|
57
|
form_ref.qformat.value="";
|
58
|
form_ref.submit();
|
59
|
}
|
60
|
function submitform2(action, qformat, form_ref) {
|
61
|
form_ref.action.value=action;
|
62
|
form_ref.qformat.value=qformat;
|
63
|
form_ref.abstractpath.value="";
|
64
|
form_ref.submit();
|
65
|
}
|
66
|
]]>
|
67
|
</script>
|
68
|
</head>
|
69
|
<body>
|
70
|
<!--<div class="header-logo">
|
71
|
<img src="/catalog/img/catalog/sbclter-logo.gif" alt="SBC LTER" border="0" />
|
72
|
</div>-->
|
73
|
<div class="spacing" align="center">
|
74
|
<table cellspacing="0" width="100%" border="0">
|
75
|
<tr>
|
76
|
<td class="header-title">
|
77
|
<div class="header-title">
|
78
|
@header-title@
|
79
|
</div>
|
80
|
<div class="header-subtitle">
|
81
|
@header-subtitle@
|
82
|
</div>
|
83
|
</td>
|
84
|
<td class="header-image" rowspan="1">
|
85
|
<div class="header-image">
|
86
|
<img class="header" src="@html-path@/@header-image@"
|
87
|
alt="@header-image-alt@"
|
88
|
border="0" />
|
89
|
</div>
|
90
|
</td>
|
91
|
</tr>
|
92
|
<tr>
|
93
|
<td class="header-menu" colspan="2">
|
94
|
<div class="header-menu">
|
95
|
@header-menu@
|
96
|
</div>
|
97
|
</td>
|
98
|
</tr>
|
99
|
<tr>
|
100
|
<td class="header-submenu" colspan="2">
|
101
|
<div class="header-submenu">
|
102
|
  <!-- that is XML compliant -->
|
103
|
</div>
|
104
|
</td>
|
105
|
</tr>
|
106
|
</table>
|
107
|
</div>
|
108
|
<div class="content-spacing" align="center">
|
109
|
<table cellspacing="0" width="100%" height="100%" border="0">
|
110
|
<tr>
|
111
|
<td class="content-area" colspan="2">
|
112
|
<!-- END SBCLTER PAGE TOP HTML -->
|
113
|
<div class="content-area">
|
114
|
<center>
|
115
|
<h1>Project Description</h1>
|
116
|
<!--h3>Ecological Metadata Language</h3--><br />
|
117
|
</center>
|
118
|
<table class="tabledefault" width="100%">
|
119
|
<!-- width needed for NN4 - doesn't recognize width in css -->
|
120
|
<!--xsl:apply-templates select="eml-project/identifier" mode="resource"/-->
|
121
|
<xsl:apply-templates select="eml-project/researchProject"/>
|
122
|
</table>
|
123
|
</div>
|
124
|
</td>
|
125
|
</tr>
|
126
|
<tr>
|
127
|
<td colspan="2">
|
128
|
<!--div class="nsf" >This material is based on the upon work
|
129
|
supported by the National Science Foundation under Cooperative
|
130
|
Agreement #OCE-9982105. Any opinions, findings, or recommendations
|
131
|
expressed in the material are those of author(s) and do not
|
132
|
necessarily reflect the view of the National Science Foundation.
|
133
|
</div-->
|
134
|
</td>
|
135
|
</tr>
|
136
|
<tr>
|
137
|
<td class="footer-menu" colspan="2">
|
138
|
<div class="footer-menu">
|
139
|
@footer-menu@
|
140
|
</div>
|
141
|
</td>
|
142
|
</tr>
|
143
|
<tr>
|
144
|
<td class="footer-left">
|
145
|
<div class="footer-left">
|
146
|
@copyright@
|
147
|
</div>
|
148
|
</td>
|
149
|
<td class="footer-right">
|
150
|
<div class="footer-right">
|
151
|
Contact: <a class="footer-link"
|
152
|
href="@mailto-address@">
|
153
|
@header-subtitle@data@nceas.ucsb.edu
|
154
|
</a> |
|
155
|
<a class="footer-link"
|
156
|
href="@intranet-address@"
|
157
|
target="offline">Internal Login
|
158
|
</a>
|
159
|
</div>
|
160
|
</td>
|
161
|
</tr>
|
162
|
</table>
|
163
|
</div>
|
164
|
</body>
|
165
|
</html>
|
166
|
</xsl:template>
|
167
|
|
168
|
<xsl:template match="researchProject">
|
169
|
<xsl:apply-templates select="./title" mode="resource"/>
|
170
|
<tr><td class="{$subHeaderStyle}" colspan="2">Personnel:</td></tr>
|
171
|
<xsl:for-each select="personnel">
|
172
|
<xsl:apply-templates select="." mode="party"/>
|
173
|
</xsl:for-each>
|
174
|
<xsl:apply-templates select="./temporalCov"/>
|
175
|
<xsl:apply-templates select="./geographicCov"/>
|
176
|
<xsl:apply-templates select="./abstract" mode="resource"/>
|
177
|
<xsl:apply-templates select="./funding"/>
|
178
|
<xsl:apply-templates select="./siteDescription"/>
|
179
|
<xsl:apply-templates select="./designDescription"/>
|
180
|
<xsl:apply-templates select="./researchProject" mode="recursive"/>
|
181
|
</xsl:template>
|
182
|
|
183
|
<xsl:template match="funding">
|
184
|
<tr class="{$subHeaderStyle}"><td colspan="2">
|
185
|
<xsl:text>Funding:</xsl:text></td></tr>
|
186
|
<xsl:call-template name="renderParagsCits"/>
|
187
|
</xsl:template>
|
188
|
|
189
|
<xsl:template match="siteDescription">
|
190
|
<tr class="{$subHeaderStyle}"><td colspan="2">
|
191
|
<xsl:text>Site Description:</xsl:text></td></tr>
|
192
|
<xsl:call-template name="renderParagsCits"/>
|
193
|
</xsl:template>
|
194
|
|
195
|
|
196
|
<xsl:template match="title" mode="resource">
|
197
|
<xsl:if test="normalize-space(../title)!=''">
|
198
|
<tr><td width="{$firstColWidth}">
|
199
|
<b>Title:</b></td><td width="{$secondColWidth}" >
|
200
|
<b><xsl:value-of select="../title"/></b></td></tr>
|
201
|
</xsl:if>
|
202
|
</xsl:template>
|
203
|
|
204
|
<xsl:template match="designDescription">
|
205
|
<tr class="{$subHeaderStyle}"><td colspan="2">
|
206
|
<xsl:text>DESIGN DESCRIPTION:</xsl:text></td></tr>
|
207
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> </td>
|
208
|
<td width="{$secondColWidth}" class="{$secondColStyle}"> </td></tr>
|
209
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> </td>
|
210
|
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
211
|
<table width="100%">
|
212
|
<xsl:apply-templates select="protocol"/>
|
213
|
|
214
|
<xsl:apply-templates select="sampling"/>
|
215
|
|
216
|
<xsl:for-each select="./paragraph">
|
217
|
<xsl:if test="normalize-space(./paragraph)!=''">
|
218
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
219
|
Additional Info:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
220
|
<xsl:value-of select="./paragraph"/></td></tr>
|
221
|
</xsl:if>
|
222
|
</xsl:for-each>
|
223
|
|
224
|
<tr class="{$subHeaderStyle}"><td colspan="2">
|
225
|
<xsl:text>Literature Citation:</xsl:text></td></tr>
|
226
|
<xsl:apply-templates select="citation"/>
|
227
|
|
228
|
</table></td></tr>
|
229
|
</xsl:template>
|
230
|
|
231
|
|
232
|
<xsl:template match="sampling">
|
233
|
|
234
|
<tr class="{$subHeaderStyle}"><td colspan="2">Sampling:</td></tr>
|
235
|
|
236
|
<xsl:if test="normalize-space(./frequency)!=''">
|
237
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
|
238
|
Frequency</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
239
|
<xsl:value-of select="./frequency"/></td></tr>
|
240
|
</xsl:if>
|
241
|
<xsl:for-each select="./temporalCov">
|
242
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
|
243
|
Coverage</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
244
|
<table width="100%">
|
245
|
<xsl:apply-templates select="."/>
|
246
|
</table></td></tr>
|
247
|
</xsl:for-each>
|
248
|
|
249
|
<xsl:for-each select="./paragraph">
|
250
|
<xsl:if test="normalize-space(./paragraph)!=''">
|
251
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
252
|
Additional Info:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
253
|
<xsl:value-of select="./paragraph"/></td></tr>
|
254
|
</xsl:if>
|
255
|
</xsl:for-each>
|
256
|
<xsl:for-each select="./citation">
|
257
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
|
258
|
Literature Citation</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
259
|
<table width="100%">
|
260
|
<xsl:apply-templates select="."/>
|
261
|
</table></td></tr>
|
262
|
</xsl:for-each>
|
263
|
</xsl:template>
|
264
|
|
265
|
|
266
|
<xsl:template match="researchProject" mode="recursive">
|
267
|
<xsl:for-each select="../researchProject">
|
268
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
|
269
|
Additional Project:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
270
|
<table width="100%">
|
271
|
<xsl:apply-templates select="."/>
|
272
|
</table></td></tr>
|
273
|
</xsl:for-each>
|
274
|
</xsl:template>
|
275
|
|
276
|
|
277
|
|
278
|
<!-- these are elements we need to suppress (they are displayed by templates without a "mode=" parameter) -->
|
279
|
|
280
|
<xsl:template match="//personnel" mode="resource"/>
|
281
|
|
282
|
|
283
|
|
284
|
</xsl:stylesheet>
|