1
|
<?xml version="1.0"?>
|
2
|
<!--
|
3
|
* '$RCSfile$'
|
4
|
* Copyright: 2000 Regents of the University of California and the
|
5
|
* National Center for Ecological Analysis and Synthesis
|
6
|
* For Details: http://www.nceas.ucsb.edu/
|
7
|
*
|
8
|
* '$Author: tao $'
|
9
|
* '$Date: 2000-11-20 05:14:04 -0800 (Mon, 20 Nov 2000) $'
|
10
|
* '$Revision: 553 $'
|
11
|
*
|
12
|
* This program is free software; you can redistribute it and/or modify
|
13
|
* it under the terms of the GNU General Public License as published by
|
14
|
* the Free Software Foundation; either version 2 of the License, or
|
15
|
* (at your option) any later version.
|
16
|
*
|
17
|
* This program is distributed in the hope that it will be useful,
|
18
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20
|
* GNU General Public License for more details.
|
21
|
*
|
22
|
* You should have received a copy of the GNU General Public License
|
23
|
* along with this program; if not, write to the Free Software
|
24
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
25
|
*
|
26
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
27
|
* convert an XML file that is valid with respect to the eml-variable.dtd
|
28
|
* module of the Ecological Metadata Language (EML) into an HTML format
|
29
|
* suitable for rendering with modern web browsers.
|
30
|
-->
|
31
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
32
|
<!-- IMPORTANT: IMPORT EML-RESOURCE *AFTER* EML-COVERAGE!!! -->
|
33
|
<xsl:import href="eml-settings-2.0.0beta6-@name@.xsl" />
|
34
|
<xsl:import href="eml-identifier-2.0.0beta6-@name@.xsl" />
|
35
|
|
36
|
<xsl:output method="html" encoding="iso-8859-1"/>
|
37
|
|
38
|
<xsl:template match="/">
|
39
|
<!-- BEGIN @header-subtitle@ PAGE TOP HTML -->
|
40
|
<html>
|
41
|
<!--
|
42
|
'$RCSfile$'
|
43
|
Copyright: 2001 Regents of the University of California and the
|
44
|
@header-title@ LTER
|
45
|
'$Author: tao $'
|
46
|
'$Date: 2000-11-20 05:14:04 -0800 (Mon, 20 Nov 2000) $'
|
47
|
'$Revision: 553 $'
|
48
|
-->
|
49
|
<head>
|
50
|
<title>@header-title@ LTER</title>
|
51
|
<link rel="stylesheet" type="text/css"
|
52
|
href="@style-path@/@name@.css" />
|
53
|
<style type="text/css">
|
54
|
@import url(@style-path@/@header-subtitle@-advanced.css);
|
55
|
</style>
|
56
|
<script language="JavaScript">
|
57
|
<![CDATA[
|
58
|
function submitform(action,form_ref) {
|
59
|
form_ref.action.value=action;
|
60
|
form_ref.abstractpath.value="";
|
61
|
form_ref.qformat.value="@header-subtitle@";
|
62
|
form_ref.submit();
|
63
|
}
|
64
|
function submitform1(action, abstractpath, form_ref) {
|
65
|
form_ref.action.value=action;
|
66
|
form_ref.abstractpath.value=abstractpath;
|
67
|
form_ref.qformat.value="";
|
68
|
form_ref.submit();
|
69
|
}
|
70
|
function submitform2(action, qformat, form_ref) {
|
71
|
form_ref.action.value=action;
|
72
|
form_ref.qformat.value=qformat;
|
73
|
form_ref.abstractpath.value="";
|
74
|
form_ref.submit();
|
75
|
}
|
76
|
function openWindow(request)
|
77
|
{
|
78
|
window.open(request,"attr");
|
79
|
}
|
80
|
]]>
|
81
|
</script>
|
82
|
</head>
|
83
|
<body>
|
84
|
<!--<div class="header-logo">
|
85
|
<img src="/catalog/img/catalog/@header-subtitle@-logo.gif" alt="SBC LTER" border="0" />
|
86
|
</div>-->
|
87
|
<div class="spacing" align="center">
|
88
|
<table cellspacing="0" width="100%" border="0">
|
89
|
<tr>
|
90
|
<td class="header-title">
|
91
|
<div class="header-title">
|
92
|
@header-title@
|
93
|
</div>
|
94
|
<div class="header-subtitle">
|
95
|
@header-subtitle@
|
96
|
</div>
|
97
|
</td>
|
98
|
<td class="header-image" rowspan="1">
|
99
|
<div class="header-image">
|
100
|
<img class="header" src="@html-path@/@header-image@"
|
101
|
alt="@header-image-alt@"
|
102
|
border="0" />
|
103
|
</div>
|
104
|
</td>
|
105
|
</tr>
|
106
|
<tr>
|
107
|
<td class="header-menu" colspan="2">
|
108
|
<div class="header-menu">
|
109
|
@header-menu@
|
110
|
</div>
|
111
|
</td>
|
112
|
</tr>
|
113
|
<tr>
|
114
|
<td class="header-submenu" colspan="2">
|
115
|
<div class="header-submenu">
|
116
|
  <!-- that is XML compliant -->
|
117
|
</div>
|
118
|
</td>
|
119
|
</tr>
|
120
|
</table>
|
121
|
</div>
|
122
|
<div class="content-spacing" align="center">
|
123
|
<table cellspacing="0" width="100%" height="100%" border="0">
|
124
|
<tr>
|
125
|
<td class="content-area" colspan="2">
|
126
|
<!-- END @header-subtitle@ PAGE TOP HTML -->
|
127
|
<div class="content-area">
|
128
|
<table width="85%">
|
129
|
<tr><td class="tablehead"> Attribute Definitions</td></tr><tr></tr>
|
130
|
<tr><td>
|
131
|
<table class="border1" cellspacing="0">
|
132
|
<!-- width needed for NN4 - doesn't recognize width in css -->
|
133
|
|
134
|
<tr><th colspan="1" valign="center" align="center" class="bordered">Columns</th>
|
135
|
|
136
|
<xsl:for-each select="eml-attribute/attribute">
|
137
|
<th colspan="1" align="center" class="bordered"><xsl:value-of select="attributeName"/></th>
|
138
|
</xsl:for-each>
|
139
|
</tr>
|
140
|
<tr><th colspan="1" align="center" class="bordered" >Label(s) of the Column</th>
|
141
|
<xsl:for-each select="eml-attribute/attribute">
|
142
|
<xsl:variable name="stripes">
|
143
|
<xsl:choose>
|
144
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
145
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
146
|
</xsl:choose>
|
147
|
</xsl:variable>
|
148
|
<td colspan="1" align="center" class="{$stripes}">
|
149
|
<xsl:for-each select="attributeLabel">
|
150
|
<xsl:value-of select="."/>
|
151
|
 <br />
|
152
|
</xsl:for-each>
|
153
|
</td>
|
154
|
</xsl:for-each>
|
155
|
</tr>
|
156
|
<tr><th colspan="1" align="center" class="bordered">Meaning</th>
|
157
|
|
158
|
<xsl:for-each select="eml-attribute/attribute">
|
159
|
<xsl:variable name="stripes">
|
160
|
<xsl:choose>
|
161
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
162
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
163
|
</xsl:choose>
|
164
|
</xsl:variable>
|
165
|
<td colspan="1" align="center" class="{$stripes}">
|
166
|
<xsl:value-of select="attributeDefinition"/>
|
167
|
</td>
|
168
|
</xsl:for-each>
|
169
|
</tr>
|
170
|
|
171
|
<tr><th colspan="1" align="center" class="bordered">Unit</th>
|
172
|
<xsl:for-each select="eml-attribute/attribute">
|
173
|
<xsl:variable name="stripes">
|
174
|
<xsl:choose>
|
175
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
176
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
177
|
</xsl:choose>
|
178
|
</xsl:variable>
|
179
|
<td colspan="1" align="center" class="{$stripes}">
|
180
|
<xsl:value-of select="unit"/>
|
181
|
</td>
|
182
|
</xsl:for-each>
|
183
|
</tr>
|
184
|
|
185
|
<tr><th colspan="1" align="center" class="bordered">Type of Value</th>
|
186
|
<xsl:for-each select="eml-attribute/attribute">
|
187
|
<xsl:variable name="stripes">
|
188
|
<xsl:choose>
|
189
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
190
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
191
|
</xsl:choose>
|
192
|
</xsl:variable>
|
193
|
<td colspan="1" align="center" class="{$stripes}">
|
194
|
<xsl:value-of select="dataType"/>
|
195
|
</td>
|
196
|
</xsl:for-each>
|
197
|
</tr>
|
198
|
|
199
|
<tr><th colspan="1" align="center" class="bordered">Missing Value Code</th>
|
200
|
<xsl:for-each select="eml-attribute/attribute">
|
201
|
<xsl:variable name="stripes">
|
202
|
<xsl:choose>
|
203
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
204
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
205
|
</xsl:choose>
|
206
|
</xsl:variable>
|
207
|
<td colspan="1" align="center" class="{$stripes}">
|
208
|
<xsl:for-each select="missingValueCode">
|
209
|
<xsl:value-of select="."/>
|
210
|
</xsl:for-each>
|
211
|
</td>
|
212
|
</xsl:for-each>
|
213
|
</tr>
|
214
|
|
215
|
<tr><th colspan="1" align="center" class="bordered">Precision  </th>
|
216
|
<xsl:for-each select="eml-attribute/attribute">
|
217
|
<xsl:variable name="stripes">
|
218
|
<xsl:choose>
|
219
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
220
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
221
|
</xsl:choose>
|
222
|
</xsl:variable>
|
223
|
<td colspan="1" align="center" class="{$stripes}">
|
224
|
<xsl:value-of select="precision"/> 
|
225
|
</td>
|
226
|
</xsl:for-each>
|
227
|
</tr>
|
228
|
|
229
|
<tr valign="middle"><th align="center" valign="middle" class="bordered" >Allowed Values</th>
|
230
|
<xsl:for-each select="eml-attribute/attribute">
|
231
|
<xsl:variable name="stripes">
|
232
|
<xsl:choose>
|
233
|
<xsl:when test="position() mod 2 = 1">colodd</xsl:when>
|
234
|
<xsl:when test="position() mod 2 = 0">coleven</xsl:when>
|
235
|
</xsl:choose>
|
236
|
</xsl:variable>
|
237
|
<td class="{$stripes}">
|
238
|
<xsl:for-each select="attributeDomain">
|
239
|
<table width="100%" border="0" cols="2">
|
240
|
<xsl:if test="count(enumeratedDomain) > 0">
|
241
|
<tr><td colspan="2" align="center" width="100%"><u>List of Values</u></td></tr>
|
242
|
<tr><td valign="center" align="center" colspan="2">
|
243
|
<select class="{$stripes}">
|
244
|
<option>--Select code--</option>
|
245
|
<xsl:for-each select="enumeratedDomain">
|
246
|
<xsl:variable name="id1">
|
247
|
<xsl:value-of select="//identifier"/>
|
248
|
</xsl:variable>
|
249
|
<option onClick="openWindow('http://@server@/@context@/servlet/metacat?action=read&qformat=@name@-enumeratedDomain&docid={$id1}')">
|
250
|
<xsl:value-of select="code"/> 
|
251
|
</option>
|
252
|
</xsl:for-each>
|
253
|
</select>
|
254
|
</td></tr>
|
255
|
</xsl:if>
|
256
|
<xsl:if test="count(textDomain) > 0">
|
257
|
<tr><td align="center" colspan="2"><u>Text Patterns</u></td></tr>
|
258
|
<tr><td valign="center" align="center" colspan="2">
|
259
|
<select class="{$stripes}">
|
260
|
<option>--Select code--</option>
|
261
|
<xsl:for-each select="textDomain">
|
262
|
<xsl:variable name="id1">
|
263
|
<xsl:value-of select="//identifier"/>
|
264
|
</xsl:variable>
|
265
|
<option onClick="openWindow('http://@server@/@context@/servlet/metacat?action=read&qformat=@name@-enumeratedDomain&docid={$id1}')">
|
266
|
<xsl:value-of select="definition"/> 
|
267
|
</option>
|
268
|
</xsl:for-each>
|
269
|
</select>
|
270
|
</td></tr>
|
271
|
</xsl:if>
|
272
|
<xsl:if test="count(numericDomain) > 0">
|
273
|
<tr><td align="center" colspan="2"><u>Numeric</u></td></tr>
|
274
|
<tr><td align="center">min:</td><td align="center">max:</td></tr>
|
275
|
</xsl:if>
|
276
|
<xsl:for-each select="numericDomain">
|
277
|
<xsl:apply-templates select="."/>
|
278
|
</xsl:for-each>
|
279
|
</table>
|
280
|
|
281
|
</xsl:for-each>
|
282
|
</td>
|
283
|
</xsl:for-each>
|
284
|
</tr>
|
285
|
|
286
|
</table>
|
287
|
</td>
|
288
|
</tr>
|
289
|
</table>
|
290
|
</div>
|
291
|
</td>
|
292
|
</tr>
|
293
|
<tr>
|
294
|
<td colspan="2">
|
295
|
<!--div class="nsf" >This material is based on the upon work
|
296
|
supported by the National Science Foundation under Cooperative
|
297
|
Agreement #OCE-9982105. Any opinions, findings, or recommendations
|
298
|
expressed in the material are those of author(s) and do not
|
299
|
necessarily reflect the view of the National Science Foundation.
|
300
|
</div-->
|
301
|
</td>
|
302
|
</tr>
|
303
|
<tr>
|
304
|
<td class="footer-menu" colspan="2">
|
305
|
<div class="footer-menu">
|
306
|
@footer-menu@
|
307
|
</div>
|
308
|
</td>
|
309
|
</tr>
|
310
|
<tr>
|
311
|
<td class="footer-left">
|
312
|
<div class="footer-left">
|
313
|
@copyright@
|
314
|
</div>
|
315
|
</td>
|
316
|
<td class="footer-right">
|
317
|
<div class="footer-right">
|
318
|
Contact: <a class="footer-link"
|
319
|
href="mailto:@mailto-address@">
|
320
|
@mailto-address@
|
321
|
</a> |
|
322
|
<a class="footer-link"
|
323
|
href="@intranet-address@"
|
324
|
target="offline">Internal Login
|
325
|
</a>
|
326
|
</div>
|
327
|
</td>
|
328
|
</tr>
|
329
|
</table>
|
330
|
</div>
|
331
|
</body>
|
332
|
</html>
|
333
|
</xsl:template>
|
334
|
|
335
|
|
336
|
<xsl:template match="numericDomain">
|
337
|
<tr><td align="center"><xsl:value-of select="minimum"/></td>
|
338
|
<td align="center"><xsl:value-of select="maximum"/></td></tr>
|
339
|
</xsl:template>
|
340
|
|
341
|
</xsl:stylesheet>
|