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: 2003-07-16 17:53:03 -0700 (Wed, 16 Jul 2003) $'
|
11
|
* '$Revision: 1732 $'
|
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:output method="html" encoding="iso-8859-1"/>
|
35
|
|
36
|
<xsl:template name="physical">
|
37
|
<xsl:param name="docid"/>
|
38
|
<xsl:param name="level">entity</xsl:param>
|
39
|
<xsl:param name="entitytype"/>
|
40
|
<xsl:param name="entityindex"/>
|
41
|
<xsl:param name="physicalindex"/>
|
42
|
<xsl:param name="distributionindex"/>
|
43
|
<xsl:param name="physicalfirstColStyle"/>
|
44
|
<xsl:param name="notshowdistribution"/>
|
45
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
46
|
<xsl:choose>
|
47
|
<xsl:when test="references!=''">
|
48
|
<xsl:variable name="ref_id" select="references"/>
|
49
|
<xsl:variable name="references" select="$ids[@id=$ref_id]" />
|
50
|
<xsl:for-each select="$references">
|
51
|
<xsl:call-template name="physicalcommon">
|
52
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
53
|
<xsl:with-param name="notshowdistribution" select="$notshowdistribution"/>
|
54
|
</xsl:call-template>
|
55
|
</xsl:for-each>
|
56
|
</xsl:when>
|
57
|
<xsl:otherwise>
|
58
|
<xsl:call-template name="physicalcommon">
|
59
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
60
|
<xsl:with-param name="notshowdistribution" select="$notshowdistribution"/>
|
61
|
</xsl:call-template>
|
62
|
</xsl:otherwise>
|
63
|
</xsl:choose>
|
64
|
</table>
|
65
|
</xsl:template>
|
66
|
|
67
|
<xsl:template name="physicalcommon">
|
68
|
<xsl:param name="physicalfirstColStyle"/>
|
69
|
<xsl:param name="notshowdistribution"/>
|
70
|
<xsl:param name="docid"/>
|
71
|
<xsl:param name="level">entity</xsl:param>
|
72
|
<xsl:param name="entitytype"/>
|
73
|
<xsl:param name="entityindex"/>
|
74
|
<xsl:param name="physicalindex"/>
|
75
|
<xsl:param name="distributionindex"/>
|
76
|
|
77
|
<xsl:call-template name="physicalobjectName">
|
78
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
79
|
</xsl:call-template>
|
80
|
<xsl:call-template name="physicalsize">
|
81
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
82
|
</xsl:call-template>
|
83
|
<xsl:call-template name="physicalauthentication">
|
84
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
85
|
</xsl:call-template>
|
86
|
<xsl:call-template name="physicalcompressionMethod">
|
87
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
88
|
</xsl:call-template>
|
89
|
<xsl:call-template name="physicalencodingMethod">
|
90
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
91
|
</xsl:call-template>
|
92
|
<xsl:call-template name="physicalcharacterEncoding">
|
93
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
94
|
</xsl:call-template>
|
95
|
<xsl:call-template name="physicaltextFormat">
|
96
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
97
|
</xsl:call-template>
|
98
|
<xsl:call-template name="physicalexternallyDefinedFormat">
|
99
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
100
|
</xsl:call-template>
|
101
|
<xsl:call-template name="physicalbinaryRasterFormat">
|
102
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
103
|
</xsl:call-template>
|
104
|
<xsl:if test="$notshowdistribution=''">
|
105
|
<xsl:for-each select="distribution">
|
106
|
<xsl:call-template name="distribution">
|
107
|
<xsl:with-param name="disfirstColStyle" select="$physicalfirstColStyle"/>
|
108
|
<xsl:with-param name="dissubHeaderStyle" select="$subHeaderStyle"/>
|
109
|
<xsl:with-param name="docid" select="$docid"/>
|
110
|
<xsl:with-param name="level">entitylevel</xsl:with-param>
|
111
|
<xsl:with-param name="entitytype" select="$entitytype"/>
|
112
|
<xsl:with-param name="entityindex" select="$entityindex"/>
|
113
|
<xsl:with-param name="physicalindex" select="$physicalindex"/>
|
114
|
<xsl:with-param name="distributionindex" select="position()"/>
|
115
|
</xsl:call-template>
|
116
|
</xsl:for-each>
|
117
|
</xsl:if>
|
118
|
|
119
|
</xsl:template>
|
120
|
|
121
|
<xsl:template name="physicalobjectName">
|
122
|
<xsl:param name="physicalfirstColStyle"/>
|
123
|
<xsl:for-each select="objectName">
|
124
|
<tr>
|
125
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
126
|
Object Name:</td>
|
127
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
128
|
<xsl:value-of select="."/></td>
|
129
|
</tr>
|
130
|
</xsl:for-each>
|
131
|
</xsl:template>
|
132
|
|
133
|
<xsl:template name="physicalsize">
|
134
|
<xsl:param name="physicalfirstColStyle"/>
|
135
|
<xsl:for-each select="size">
|
136
|
<tr>
|
137
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
138
|
Size:</td>
|
139
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
140
|
<xsl:value-of select="."/><xsl:text> </xsl:text><xsl:value-of select="./@unit"/></td>
|
141
|
</tr>
|
142
|
</xsl:for-each>
|
143
|
</xsl:template>
|
144
|
|
145
|
<xsl:template name="physicalauthentication">
|
146
|
<xsl:param name="physicalfirstColStyle"/>
|
147
|
<xsl:for-each select="authentication">
|
148
|
<tr>
|
149
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
150
|
Authentication:</td>
|
151
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
152
|
<xsl:value-of select="."/><xsl:text> </xsl:text>
|
153
|
<xsl:if test="./@method">
|
154
|
Caculated By<xsl:text> </xsl:text><xsl:value-of select="./@method"/>
|
155
|
</xsl:if>
|
156
|
</td>
|
157
|
</tr>
|
158
|
</xsl:for-each>
|
159
|
</xsl:template>
|
160
|
|
161
|
<xsl:template name="physicalcompressionMethod">
|
162
|
<xsl:param name="physicalfirstColStyle"/>
|
163
|
<xsl:for-each select="compressionMethod">
|
164
|
<tr>
|
165
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
166
|
Compression Method:</td>
|
167
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
168
|
<xsl:value-of select="."/></td>
|
169
|
</tr>
|
170
|
</xsl:for-each>
|
171
|
</xsl:template>
|
172
|
|
173
|
<xsl:template name="physicalencodingMethod">
|
174
|
<xsl:param name="physicalfirstColStyle"/>
|
175
|
<xsl:for-each select="encodingMethod">
|
176
|
<tr>
|
177
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
178
|
Encoding Method:</td>
|
179
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
180
|
<xsl:value-of select="."/></td>
|
181
|
</tr>
|
182
|
</xsl:for-each>
|
183
|
</xsl:template>
|
184
|
|
185
|
<xsl:template name="physicalcharacterEncoding">
|
186
|
<xsl:param name="physicalfirstColStyle"/>
|
187
|
<xsl:for-each select="characterEncoding">
|
188
|
<tr>
|
189
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
190
|
Character Encoding:</td>
|
191
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
192
|
<xsl:value-of select="."/></td>
|
193
|
</tr>
|
194
|
</xsl:for-each>
|
195
|
</xsl:template>
|
196
|
|
197
|
<!--***********************************************************
|
198
|
TextFormat templates
|
199
|
***********************************************************-->
|
200
|
|
201
|
<xsl:template name="physicaltextFormat">
|
202
|
<xsl:param name="physicalfirstColStyle"/>
|
203
|
<xsl:for-each select="dataFormat/textFormat">
|
204
|
<tr>
|
205
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
206
|
Text Format:</td>
|
207
|
<td width="{$secondColWidth}">
|
208
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault">
|
209
|
<xsl:apply-templates>
|
210
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
211
|
</xsl:apply-templates>
|
212
|
</table>
|
213
|
</td>
|
214
|
</tr>
|
215
|
|
216
|
</xsl:for-each>
|
217
|
|
218
|
</xsl:template>
|
219
|
|
220
|
|
221
|
<xsl:template match="numHeaderLines">
|
222
|
<xsl:param name="physicalfirstColStyle"/>
|
223
|
<tr>
|
224
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Number of Header Lines:</td>
|
225
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
226
|
</tr>
|
227
|
</xsl:template>
|
228
|
|
229
|
<xsl:template match="numFooterLines">
|
230
|
<xsl:param name="physicalfirstColStyle"/>
|
231
|
<tr>
|
232
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Number of Foot Lines:</td>
|
233
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
234
|
</tr>
|
235
|
</xsl:template>
|
236
|
|
237
|
<xsl:template match="recordDelimiter">
|
238
|
<xsl:param name="physicalfirstColStyle"/>
|
239
|
<tr>
|
240
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Record Delimiter:</td>
|
241
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
242
|
</tr>
|
243
|
</xsl:template>
|
244
|
|
245
|
<xsl:template match="physicalLineDelimiter">
|
246
|
<xsl:param name="physicalfirstColStyle"/>
|
247
|
<tr>
|
248
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Delimiter:</td>
|
249
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
250
|
</tr>
|
251
|
</xsl:template>
|
252
|
|
253
|
<xsl:template match="numPhysicalLinePerRecord">
|
254
|
<xsl:param name="physicalfirstColStyle"/>
|
255
|
<tr>
|
256
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Number For One Record:</td>
|
257
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
258
|
</tr>
|
259
|
</xsl:template>
|
260
|
|
261
|
<xsl:template match="maxRecordLength">
|
262
|
<xsl:param name="physicalfirstColStyle"/>
|
263
|
<tr>
|
264
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Maximum Record Length:</td>
|
265
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
266
|
</tr>
|
267
|
</xsl:template>
|
268
|
|
269
|
<xsl:template match="attributeOrientation">
|
270
|
<xsl:param name="physicalfirstColStyle"/>
|
271
|
<tr>
|
272
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Maximum Record Length:</td>
|
273
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
274
|
</tr>
|
275
|
</xsl:template>
|
276
|
|
277
|
<xsl:template match="simpleDelimited">
|
278
|
<xsl:param name="physicalfirstColStyle"/>
|
279
|
<tr>
|
280
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Simple Delimited:</td>
|
281
|
<td width="{$secondColWidth}">
|
282
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
283
|
<xsl:apply-templates>
|
284
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
285
|
</xsl:apply-templates>
|
286
|
</table>
|
287
|
</td>
|
288
|
</tr>
|
289
|
</xsl:template>
|
290
|
|
291
|
<xsl:template match="complex">
|
292
|
<xsl:param name="physicalfirstColStyle"/>
|
293
|
<tr>
|
294
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Complex Delimited:</td>
|
295
|
<td width="{$secondColWidth}">
|
296
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
297
|
<xsl:call-template name="textFixed">
|
298
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
299
|
</xsl:call-template>
|
300
|
<xsl:call-template name="textDelimited">
|
301
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
302
|
</xsl:call-template>
|
303
|
</table>
|
304
|
</td>
|
305
|
</tr>
|
306
|
</xsl:template>
|
307
|
|
308
|
|
309
|
<xsl:template name="textFixed">
|
310
|
<xsl:param name="physicalfirstColStyle"/>
|
311
|
<tr>
|
312
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Text Fixed:</td>
|
313
|
<td width="{$secondColWidth}">
|
314
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
315
|
<xsl:apply-templates>
|
316
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
317
|
</xsl:apply-templates>
|
318
|
</table>
|
319
|
</td>
|
320
|
</tr>
|
321
|
</xsl:template>
|
322
|
|
323
|
<xsl:template name="textDelimited">
|
324
|
<xsl:param name="physicalfirstColStyle"/>
|
325
|
<tr>
|
326
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Text Delimited:</td>
|
327
|
<td width="{$secondColWidth}">
|
328
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
329
|
<xsl:apply-templates>
|
330
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
331
|
</xsl:apply-templates>
|
332
|
</table>
|
333
|
</td>
|
334
|
</tr>
|
335
|
</xsl:template>
|
336
|
|
337
|
<xsl:template match="quoteCharacter">
|
338
|
<xsl:param name="physicalfirstColStyle"/>
|
339
|
<tr>
|
340
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Quote Character:</td>
|
341
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
342
|
</tr>
|
343
|
</xsl:template>
|
344
|
|
345
|
<xsl:template match="literalCharacter">
|
346
|
<xsl:param name="physicalfirstColStyle"/>
|
347
|
<tr>
|
348
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Literal Character:</td>
|
349
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
350
|
</tr>
|
351
|
</xsl:template>
|
352
|
|
353
|
|
354
|
<xsl:template match="fieldDelimiter">
|
355
|
<xsl:param name="physicalfirstColStyle"/>
|
356
|
<tr>
|
357
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Delimeter:</td>
|
358
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
359
|
</tr>
|
360
|
</xsl:template>
|
361
|
|
362
|
<xsl:template match="fieldWidth">
|
363
|
<xsl:param name="physicalfirstColStyle"/>
|
364
|
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Field Width:</td>
|
365
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
366
|
</tr>
|
367
|
</xsl:template>
|
368
|
|
369
|
<xsl:template match="lineNumber">
|
370
|
<xsl:param name="physicalfirstColStyle"/>
|
371
|
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Line Number:</td>
|
372
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
373
|
</tr>
|
374
|
</xsl:template>
|
375
|
|
376
|
<xsl:template match="fieldStartColumn">
|
377
|
<xsl:param name="physicalfirstColStyle"/>
|
378
|
<tr>
|
379
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Start Column:</td>
|
380
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
381
|
</tr>
|
382
|
</xsl:template>
|
383
|
|
384
|
|
385
|
<!--***********************************************************
|
386
|
externallyDefinedFormat templates
|
387
|
***********************************************************-->
|
388
|
<xsl:template name="physicalexternallyDefinedFormat">
|
389
|
<xsl:param name="physicalfirstColStyle"/>
|
390
|
<xsl:for-each select="dataFormat/externallyDefinedFormat">
|
391
|
<tr>
|
392
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
393
|
Externally Defined Format:</td>
|
394
|
<td width="{$secondColWidth}">
|
395
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault">
|
396
|
<xsl:apply-templates>
|
397
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
398
|
</xsl:apply-templates>
|
399
|
</table>
|
400
|
</td>
|
401
|
</tr>
|
402
|
</xsl:for-each>
|
403
|
</xsl:template>
|
404
|
|
405
|
<xsl:template match="formatName">
|
406
|
<xsl:param name="physicalfirstColStyle"/>
|
407
|
<tr>
|
408
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Format Name:</td>
|
409
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
410
|
</tr>
|
411
|
</xsl:template>
|
412
|
|
413
|
<xsl:template match="formatVersion">
|
414
|
<xsl:param name="physicalfirstColStyle"/>
|
415
|
<tr>
|
416
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Format Version:</td>
|
417
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
418
|
</tr>
|
419
|
</xsl:template>
|
420
|
|
421
|
<xsl:template match="citation">
|
422
|
<xsl:param name="physicalfirstColStyle"/>
|
423
|
<tr>
|
424
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Citation:</td>
|
425
|
<td class="{$secondColStyle}">
|
426
|
<xsl:call-template name="citation">
|
427
|
<xsl:with-param name="citationfirstColStyle" select="physicalfirstColStyle"/>
|
428
|
</xsl:call-template>
|
429
|
</td>
|
430
|
</tr>
|
431
|
</xsl:template>
|
432
|
|
433
|
<!--***********************************************************
|
434
|
binaryRasterFormat templates
|
435
|
***********************************************************-->
|
436
|
<xsl:template name="physicalbinaryRasterFormat">
|
437
|
<xsl:param name="physicalfirstColStyle"/>
|
438
|
<xsl:for-each select="dataFormat/binaryRasterFormat">
|
439
|
<tr>
|
440
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
441
|
Binary Raster Format:</td>
|
442
|
<td width="{$secondColWidth}">
|
443
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault">
|
444
|
<xsl:apply-templates>
|
445
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
446
|
</xsl:apply-templates>
|
447
|
</table>
|
448
|
</td>
|
449
|
</tr>
|
450
|
|
451
|
</xsl:for-each>
|
452
|
</xsl:template>
|
453
|
|
454
|
<xsl:template match="rowColumnOrientation">
|
455
|
<xsl:param name="physicalfirstColStyle"/>
|
456
|
<tr>
|
457
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Orientation:</td>
|
458
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
459
|
<xsl:value-of select="."/>
|
460
|
</td>
|
461
|
</tr>
|
462
|
</xsl:template>
|
463
|
|
464
|
<xsl:template match="multiBand">
|
465
|
<xsl:param name="physicalfirstColStyle"/>
|
466
|
<tr>
|
467
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Multiple Bands:</td>
|
468
|
<td class="{$secondColStyle}">
|
469
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
470
|
<tr>
|
471
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Spectral Bands:</td>
|
472
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
473
|
<xsl:value-of select="./nbands"/>
|
474
|
</td>
|
475
|
</tr>
|
476
|
<tr>
|
477
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Layout:</td>
|
478
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
479
|
<xsl:value-of select="./layout"/>
|
480
|
</td>
|
481
|
</tr>
|
482
|
</table>
|
483
|
</td>
|
484
|
</tr>
|
485
|
</xsl:template>
|
486
|
|
487
|
|
488
|
<xsl:template match="nbits">
|
489
|
<xsl:param name="physicalfirstColStyle"/>
|
490
|
<tr>
|
491
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bits (/pixel/band):</td>
|
492
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
493
|
<xsl:value-of select="."/>
|
494
|
</td>
|
495
|
</tr>
|
496
|
</xsl:template>
|
497
|
|
498
|
<xsl:template match="byteorder">
|
499
|
<xsl:param name="physicalfirstColStyle"/>
|
500
|
<tr>
|
501
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Byte Order:</td>
|
502
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
503
|
<xsl:value-of select="."/>
|
504
|
</td>
|
505
|
</tr>
|
506
|
</xsl:template>
|
507
|
|
508
|
<xsl:template match="skipbytes">
|
509
|
<xsl:param name="physicalfirstColStyle"/>
|
510
|
<tr>
|
511
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Skipped Bytes:</td>
|
512
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
513
|
<xsl:value-of select="."/>
|
514
|
</td>
|
515
|
</tr>
|
516
|
</xsl:template>
|
517
|
|
518
|
<xsl:template match="bandrowbytes">
|
519
|
<xsl:param name="physicalfirstColStyle"/>
|
520
|
<tr>
|
521
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bytes (/band/row):</td>
|
522
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
523
|
<xsl:value-of select="."/>
|
524
|
</td>
|
525
|
</tr>
|
526
|
</xsl:template>
|
527
|
|
528
|
<xsl:template match="totalrowbytes">
|
529
|
<xsl:param name="physicalfirstColStyle"/>
|
530
|
<tr>
|
531
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Total Number of Byte (/row):</td>
|
532
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
533
|
<xsl:value-of select="."/>
|
534
|
</td>
|
535
|
</tr>
|
536
|
</xsl:template>
|
537
|
|
538
|
<xsl:template match="bandgapbytes">
|
539
|
<xsl:param name="physicalfirstColStyle"/>
|
540
|
<tr>
|
541
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bytes between Bands:</td>
|
542
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
543
|
<xsl:value-of select="."/>
|
544
|
</td>
|
545
|
</tr>
|
546
|
</xsl:template>
|
547
|
|
548
|
</xsl:stylesheet>
|