Project

General

Profile

1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Jivka Bojilova
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-06-20 10:51:59 -0700 (Fri, 20 Jun 2003) $'
11
  * '$Revision: 1673 $'
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-file.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

    
35
  <xsl:output method="html" encoding="iso-8859-1"/>
36
  <!-- This module is for datatable module-->
37
  
38
  <xsl:template name="spatialRaster">
39
      <xsl:param name="spatialrasterfirstColStyle"/>
40
      <xsl:param name="spatialrastersubHeaderStyle"/>
41
      <xsl:param name="docid"/>
42
      <xsl:param name="entityindex"/>
43
      <table class="tabledefault" width="100%">
44
        <xsl:choose>
45
         <xsl:when test="references!=''">
46
          <xsl:variable name="ref_id" select="references"/>
47
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
48
          <xsl:for-each select="$references">
49
            <xsl:call-template name="spatialRastercommon">
50
             <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
51
             <xsl:with-param name="spatialrastersubHeaderStyle" select="$spatialrastersubHeaderStyle"/>  
52
             <xsl:with-param name="docid" select="$docid"/>
53
             <xsl:with-param name="entityindex" select="$entityindex"/>
54
            </xsl:call-template>
55
          </xsl:for-each>
56
        </xsl:when>
57
        <xsl:otherwise>
58
           <xsl:call-template name="spatialRastercommon">
59
             <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
60
             <xsl:with-param name="spatialrastersubHeaderStyle" select="$spatialrastersubHeaderStyle"/>  
61
             <xsl:with-param name="docid" select="$docid"/>
62
             <xsl:with-param name="entityindex" select="$entityindex"/>
63
            </xsl:call-template>
64
         </xsl:otherwise>
65
      </xsl:choose>
66
      </table>
67
  </xsl:template>
68
  
69
  <xsl:template name="spatialRastercommon">
70
    <xsl:param name="spatialrasterfirstColStyle"/>
71
    <xsl:param name="spatialrastersubHeaderStyle"/>
72
    <xsl:param name="docid"/>
73
    <xsl:param name="entityindex"/>
74
    <xsl:for-each select="entityName">
75
       <xsl:call-template name="entityName">
76
          <xsl:with-param name="entityfirstColStyle" select="$spatialrasterfirstColStyle"/>
77
       </xsl:call-template>
78
    </xsl:for-each>
79
    <xsl:for-each select="alternateIdentifier">
80
       <xsl:call-template name="entityalternateIdentifier">
81
          <xsl:with-param name="entityfirstColStyle" select="$spatialrasterfirstColStyle"/>
82
       </xsl:call-template>
83
    </xsl:for-each>
84
    <xsl:for-each select="entityDescription">
85
       <xsl:call-template name="entityDescription">
86
          <xsl:with-param name="entityfirstColStyle" select="$spatialrasterfirstColStyle"/>
87
       </xsl:call-template>
88
    </xsl:for-each>
89
    <xsl:for-each select="additionalInfo">
90
       <xsl:call-template name="entityDescription">
91
          <xsl:with-param name="entityfirstColStyle" select="$spatialrasterfirstColStyle"/>
92
       </xsl:call-template>
93
    </xsl:for-each>
94
    <!-- call physical moduel without show distribution(we want see it later)-->
95
    <xsl:if test="physical">
96
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
97
        Physical Structure Description
98
      </td></tr>
99
    </xsl:if>
100
    <tr><td colspan="2">
101
      <xsl:for-each select="physical">
102
        <xsl:call-template name="physical">
103
         <xsl:with-param name="physicalfirstColStyle" select="$spatialrasterfirstColStyle"/>
104
         <xsl:with-param name="notshowdistribution">yes</xsl:with-param>
105
        </xsl:call-template>
106
      </xsl:for-each>
107
    </td></tr>
108
    <xsl:if test="coverage">
109
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
110
        Coverage Description
111
      </td></tr>
112
    </xsl:if>
113
    <xsl:for-each select="coverage">
114
      <tr><td colspan="2">
115
        <xsl:call-template name="coverage">
116
        </xsl:call-template>
117
      </td></tr>
118
    </xsl:for-each>
119
    <xsl:if test="method">
120
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
121
        Method Description
122
      </td></tr>
123
    </xsl:if>
124
    <xsl:for-each select="method">
125
      <tr><td colspan="2">
126
        <xsl:call-template name="method">
127
          <xsl:with-param name="methodfirstColStyle" select="$spatialrasterfirstColStyle"/>
128
          <xsl:with-param name="methodsubHeaderStyle" select="$datatablesubHeaderStyle"/>
129
        </xsl:call-template>
130
      </td></tr>
131
    </xsl:for-each>
132
    <xsl:if test="constraint">
133
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
134
        Constraint
135
      </td></tr>
136
    </xsl:if>
137
    <xsl:for-each select="constraint">
138
      <tr><td colspan="2">
139
        <xsl:call-template name="constraint">
140
          <xsl:with-param name="constraintfirstColStyle" select="$spatialrasterfirstColStyle"/>
141
        </xsl:call-template>
142
      </td></tr>
143
    </xsl:for-each>
144
    <xsl:for-each select="spatialReference">
145
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
146
        Spatial Reference
147
      </td></tr>
148
      <xsl:call-template name="spatialReference">
149
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
150
      </xsl:call-template>
151
    </xsl:for-each>
152
     <xsl:for-each select="georeferenceInfo">
153
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
154
        Grid Postion
155
      </td></tr>
156
      <xsl:call-template name="georeferenceInfo">
157
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
158
      </xsl:call-template>
159
    </xsl:for-each>
160
    <xsl:for-each select="horizontalAccuracy">
161
      <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
162
        Horizontal Accuracy
163
      </td></tr>
164
      <xsl:call-template name="dataQuality">
165
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
166
      </xsl:call-template>
167
    </xsl:for-each>
168
    <xsl:for-each select="verticalAccuracy">
169
      <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
170
        Vertical Accuracy
171
      </td></tr>
172
      <xsl:call-template name="dataQuality">
173
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
174
      </xsl:call-template>
175
    </xsl:for-each>
176
    <xsl:for-each select="cellSizeXDirection">
177
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
178
            Cell Size(X)
179
            </td>
180
            <td width="{$secondColWidth}" class="{$secondColStyle}">
181
              <xsl:value-of select="."/>
182
            </td>
183
       </tr>
184
    </xsl:for-each>
185
    <xsl:for-each select="cellSizeYDirection">
186
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
187
            Cell Size(Y)
188
            </td>
189
            <td width="{$secondColWidth}" class="{$secondColStyle}">
190
              <xsl:value-of select="."/>
191
            </td>
192
       </tr>
193
    </xsl:for-each>
194
    <xsl:for-each select="numberOfBands">
195
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
196
            Number of Bands
197
            </td>
198
            <td width="{$secondColWidth}" class="{$secondColStyle}">
199
              <xsl:value-of select="."/>
200
            </td>
201
       </tr>
202
    </xsl:for-each>
203
    <xsl:for-each select="rasterOrigin">
204
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
205
            Origin
206
            </td>
207
            <td width="{$secondColWidth}" class="{$secondColStyle}">
208
              <xsl:value-of select="."/>
209
            </td>
210
       </tr>
211
    </xsl:for-each>
212
    <xsl:for-each select="rows">
213
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
214
            Max Raster Objects(Y)
215
            </td>
216
            <td width="{$secondColWidth}" class="{$secondColStyle}">
217
              <xsl:value-of select="."/>
218
            </td>
219
       </tr>
220
    </xsl:for-each>
221
    <xsl:for-each select="columns">
222
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
223
            Max Raster Objects(X)
224
            </td>
225
            <td width="{$secondColWidth}" class="{$secondColStyle}">
226
              <xsl:value-of select="."/>
227
            </td>
228
       </tr>
229
    </xsl:for-each>
230
    <xsl:for-each select="verticals">
231
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
232
            Max Raster Objects(Z)
233
            </td>
234
            <td width="{$secondColWidth}" class="{$secondColStyle}">
235
              <xsl:value-of select="."/>
236
            </td>
237
       </tr>
238
    </xsl:for-each>
239
    <xsl:for-each select="cellGeometry">
240
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
241
            Cell Geometry
242
            </td>
243
            <td width="{$secondColWidth}" class="{$secondColStyle}">
244
              <xsl:value-of select="."/>
245
            </td>
246
       </tr>
247
    </xsl:for-each>
248
    <xsl:for-each select="toneGradation">
249
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
250
            Number of Colors
251
            </td>
252
            <td width="{$secondColWidth}" class="{$secondColStyle}">
253
              <xsl:value-of select="."/>
254
            </td>
255
       </tr>
256
    </xsl:for-each>
257
    <xsl:for-each select="scaleFactor">
258
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
259
            Scale Factor
260
            </td>
261
            <td width="{$secondColWidth}" class="{$secondColStyle}">
262
              <xsl:value-of select="."/>
263
            </td>
264
       </tr>
265
    </xsl:for-each>
266
     <xsl:for-each select="offset">
267
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
268
            Offset
269
            </td>
270
            <td width="{$secondColWidth}" class="{$secondColStyle}">
271
              <xsl:value-of select="."/>
272
            </td>
273
       </tr>
274
    </xsl:for-each>
275
    <xsl:for-each select="imageDescription">
276
      <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
277
        Image Info
278
      </td></tr>
279
      <xsl:call-template name="imageDescription">
280
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
281
      </xsl:call-template>
282
    </xsl:for-each>
283
    <xsl:for-each select="attributeList">
284
      <xsl:call-template name="spatialRasterAttributeList">
285
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
286
        <xsl:with-param name="spatialrasterHeaderStyle" select="$spatialrasterHeaderStyle"/>  
287
        <xsl:with-param name="docid" select="$docid"/>
288
        <xsl:with-param name="entityindex" select="$entityindex"/>
289
      </xsl:call-template>
290
    </xsl:for-each>
291
    <!-- Here to display distribution info-->
292
    <xsl:for-each select="physical">
293
       <xsl:call-template name="spatialRasterShowDistribution">
294
          <xsl:with-param name="docid" select="$docid"/>
295
          <xsl:with-param name="entityindex" select="$entityindex"/>
296
          <xsl:with-param name="physicalindex" select="position()"/>
297
          <xsl:with-param name="disfirstColStyle" select="$spatialrasterfirstColStyle"/>
298
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrasterHeaderStyle"/>
299
       </xsl:call-template>
300
    </xsl:for-each>
301
  </xsl:template>
302
  
303
  <!--****************************************************
304
       spatial reference
305
      ****************************************************-->
306
    <xsl:template name="spatialReference">
307
      <xsl:param name="spatialrasterfirstColStyle"/>
308
       <xsl:choose>
309
         <xsl:when test="references!=''">
310
          <xsl:variable name="ref_id" select="references"/>
311
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
312
          <xsl:for-each select="$references">
313
            <xsl:call-template name="spatialReferenceCommon">
314
              <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
315
            </xsl:call-template>
316
          </xsl:for-each>
317
        </xsl:when>
318
        <xsl:otherwise>
319
           <xsl:call-template name="spatialReferenceCommon">
320
              <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
321
            </xsl:call-template>
322
        </xsl:otherwise>
323
      </xsl:choose>
324
    
325
  </xsl:template>
326
  
327
  
328
  <xsl:template name="spatialReferenceCommon">
329
    <xsl:param name="spatialrasterfirstColStyle"/>
330
    <xsl:for-each select="horizCoordSysName">
331
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
332
            Name of Coordinate System
333
            </td>
334
            <td width="{$secondColWidth}" class="{$secondColStyle}">
335
              <xsl:value-of select="."/>
336
            </td>
337
       </tr>
338
    </xsl:for-each>
339
    <xsl:for-each select="horizCoordSysDef/geogCoordSys">
340
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
341
            Definition of Geographic Coordinate System
342
            </td>
343
            <td width="{$secondColWidth}" class="{$secondColStyle}">
344
              <xsl:call-template name="geogCoordSysType">
345
                 <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
346
              </xsl:call-template>
347
            </td>
348
       </tr>
349
    </xsl:for-each>
350
    <xsl:for-each select="horizCoordSysDef/projCoordSys">
351
      <xsl:for-each select="geogCoordSys">
352
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
353
            Definition of Geographic Coordinate System
354
            </td>
355
            <td width="{$secondColWidth}" class="{$secondColStyle}">
356
              <xsl:call-template name="geogCoordSysType">
357
                 <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
358
              </xsl:call-template>
359
            </td>
360
       </tr>
361
     </xsl:for-each>
362
     <xsl:for-each select="projection">
363
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
364
            Projection
365
            </td>
366
            <td width="{$secondColWidth}" class="{$secondColStyle}">
367
               <table class="default" width="100%">
368
                 <xsl:for-each select="parameter">
369
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
370
                          Parameter
371
                         </td>
372
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
373
                            <xsl:value-of select="."/>
374
                          </td>
375
                      </tr>
376
                 </xsl:for-each>
377
                 <xsl:for-each select="unit">
378
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
379
                          Unit
380
                        </td>
381
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
382
                           <xsl:value-of select="."/>
383
                        </td>
384
                   </tr>
385
                </xsl:for-each>
386
              </table>
387
            </td>
388
       </tr>
389
     </xsl:for-each>
390
    </xsl:for-each>
391
    <xsl:for-each select="vertCoordSys/altitudeSysDef">
392
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
393
            Altitude System Definition
394
            </td>
395
            <td width="{$secondColWidth}" class="{$secondColStyle}">
396
               <table class="default" width="100%">
397
                 <xsl:for-each select="altitudeDatumName">
398
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
399
                          Datum
400
                         </td>
401
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
402
                            <xsl:value-of select="."/>
403
                          </td>
404
                      </tr>
405
                 </xsl:for-each>
406
                 <xsl:for-each select="altitudeResolution">
407
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
408
                          Resolution
409
                        </td>
410
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
411
                           <xsl:value-of select="."/>
412
                        </td>
413
                   </tr>
414
                </xsl:for-each>
415
                <xsl:for-each select="altitudeDistanceUnits">
416
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
417
                          Distance Unit
418
                        </td>
419
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
420
                           <xsl:value-of select="."/>
421
                        </td>
422
                   </tr>
423
                </xsl:for-each>
424
                <xsl:for-each select="altitudeEncodingMethod">
425
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
426
                          Encoding Method
427
                        </td>
428
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
429
                           <xsl:value-of select="."/>
430
                        </td>
431
                   </tr>
432
                </xsl:for-each>
433
              </table>
434
            </td>
435
       </tr>
436
    </xsl:for-each>
437
    <xsl:for-each select="vertCoordSys/depthSysDef">
438
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
439
            Depth System Definition
440
            </td>
441
            <td width="{$secondColWidth}" class="{$secondColStyle}">
442
               <table class="default" width="100%">
443
                 <xsl:for-each select="depthDatumName">
444
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
445
                          Datum
446
                         </td>
447
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
448
                            <xsl:value-of select="."/>
449
                          </td>
450
                      </tr>
451
                 </xsl:for-each>
452
                 <xsl:for-each select="depthResolution">
453
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
454
                          Resolution
455
                        </td>
456
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
457
                           <xsl:value-of select="."/>
458
                        </td>
459
                   </tr>
460
                </xsl:for-each>
461
                <xsl:for-each select="depthDistanceUnits">
462
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
463
                          Distance Unit
464
                        </td>
465
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
466
                           <xsl:value-of select="."/>
467
                        </td>
468
                   </tr>
469
                </xsl:for-each>
470
                <xsl:for-each select="depthEncodingMethod">
471
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
472
                          Encoding Method
473
                        </td>
474
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
475
                           <xsl:value-of select="."/>
476
                        </td>
477
                   </tr>
478
                </xsl:for-each>
479
              </table>
480
            </td>
481
       </tr>
482
    </xsl:for-each>
483
  </xsl:template>
484
  
485
  <xsl:template name="geogCoordSysType">
486
   <xsl:param name="spatialrasterfirstColStyle"/>
487
   <table class="default" width="100%">
488
      <xsl:for-each select="datum">
489
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
490
             Datum
491
            </td>
492
            <td width="{$secondColWidth}" class="{$secondColStyle}">
493
              <xsl:value-of select="."/>
494
            </td>
495
        </tr>
496
      </xsl:for-each>
497
      <xsl:for-each select="spheroid">
498
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
499
             Spheroid
500
            </td>
501
            <td width="{$secondColWidth}" class="{$secondColStyle}">
502
              <xsl:value-of select="."/>
503
            </td>
504
        </tr>
505
      </xsl:for-each>
506
       <xsl:for-each select="primeMeridian">
507
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
508
             Prime Meridian
509
            </td>
510
            <td width="{$secondColWidth}" class="{$secondColStyle}">
511
              <xsl:value-of select="."/>
512
            </td>
513
        </tr>
514
      </xsl:for-each>
515
     <xsl:for-each select="unit">
516
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
517
             Unit
518
            </td>
519
            <td width="{$secondColWidth}" class="{$secondColStyle}">
520
              <xsl:value-of select="."/>
521
            </td>
522
        </tr>
523
      </xsl:for-each> 
524
   </table>
525
  </xsl:template>
526
  
527
  <!--*******************************************************
528
       georeferenceinfo
529
      *******************************************************-->
530
 <xsl:template name="georeferenceInfo">
531
    <xsl:param name="spatialrasterfirstColStyle"/>
532
    <xsl:for-each select="cornerPoint">
533
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
534
            Corner Point
535
            </td>
536
            <td width="{$secondColWidth}" class="{$secondColStyle}">
537
               <table class="default" width="100%">
538
                 <xsl:for-each select="corner">
539
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
540
                          Corner
541
                         </td>
542
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
543
                            <xsl:value-of select="."/>
544
                          </td>
545
                      </tr>
546
                 </xsl:for-each>
547
                 <xsl:for-each select="xCoordinate">
548
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
549
                          xCoordinate
550
                        </td>
551
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
552
                           <xsl:value-of select="."/>
553
                        </td>
554
                   </tr>
555
                </xsl:for-each>
556
                <xsl:for-each select="yCoordinate">
557
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
558
                          yCoordinate
559
                        </td>
560
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
561
                           <xsl:value-of select="."/>
562
                        </td>
563
                   </tr>
564
                </xsl:for-each>
565
                <xsl:for-each select="pointInPixel">
566
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
567
                          Point in Pixel
568
                        </td>
569
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
570
                           <xsl:value-of select="."/>
571
                        </td>
572
                   </tr>
573
                </xsl:for-each>
574
              </table>
575
            </td>
576
       </tr>
577
    </xsl:for-each>
578
    <xsl:for-each select="controlPoint">
579
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
580
            Control Point
581
            </td>
582
            <td width="{$secondColWidth}" class="{$secondColStyle}">
583
               <table class="default" width="100%">
584
                 <xsl:for-each select="column">
585
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
586
                          Column Location
587
                         </td>
588
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
589
                            <xsl:value-of select="."/>
590
                          </td>
591
                      </tr>
592
                 </xsl:for-each>
593
                 <xsl:for-each select="row">
594
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
595
                          Row Location
596
                         </td>
597
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
598
                            <xsl:value-of select="."/>
599
                          </td>
600
                      </tr>
601
                 </xsl:for-each>
602
                 <xsl:for-each select="xCoordinate">
603
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
604
                          xCoordinate
605
                        </td>
606
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
607
                           <xsl:value-of select="."/>
608
                        </td>
609
                   </tr>
610
                </xsl:for-each>
611
                <xsl:for-each select="yCoordinate">
612
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
613
                          yCoordinate
614
                        </td>
615
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
616
                           <xsl:value-of select="."/>
617
                        </td>
618
                   </tr>
619
                </xsl:for-each>
620
                <xsl:for-each select="pointInPixel">
621
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
622
                          Point in Pixel
623
                        </td>
624
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
625
                           <xsl:value-of select="."/>
626
                        </td>
627
                   </tr>
628
                </xsl:for-each>
629
              </table>
630
            </td>
631
       </tr>
632
    </xsl:for-each>
633
    <xsl:for-each select="bilinearFit">
634
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
635
            Bilinear Fit
636
            </td>
637
            <td width="{$secondColWidth}" class="{$secondColStyle}">
638
               <table class="default" width="100%">
639
                 <xsl:for-each select="xIntercept">
640
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
641
                          X Intercept
642
                         </td>
643
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
644
                            <xsl:value-of select="."/>
645
                          </td>
646
                      </tr>
647
                 </xsl:for-each>
648
                 <xsl:for-each select="xSlope">
649
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
650
                          X Slope
651
                        </td>
652
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
653
                           <xsl:value-of select="."/>
654
                        </td>
655
                   </tr>
656
                </xsl:for-each>
657
                <xsl:for-each select="yIntercept">
658
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
659
                          Y Intercept
660
                        </td>
661
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
662
                           <xsl:value-of select="."/>
663
                        </td>
664
                   </tr>
665
                </xsl:for-each>
666
                <xsl:for-each select="ySlope">
667
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
668
                          Y Slope
669
                        </td>
670
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
671
                           <xsl:value-of select="."/>
672
                        </td>
673
                   </tr>
674
                </xsl:for-each>
675
              </table>
676
            </td>
677
       </tr>
678
    </xsl:for-each>
679
 </xsl:template>
680
 
681
 <!--********************************************************
682
     data quality
683
     ********************************************************-->
684
 <xsl:template name="dataQuality">
685
   <xsl:param name="spatialrasterfirstColStyle"/>
686
   <xsl:for-each select="accuracyReport">
687
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
688
             Report
689
            </td>
690
            <td width="{$secondColWidth}" class="{$secondColStyle}">
691
                <xsl:value-of select="."/>
692
            </td>
693
       </tr>
694
   </xsl:for-each>
695
   <xsl:if test="quantitativeAccuracyReport">
696
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
697
             Quantitative Report
698
            </td>
699
            <td width="{$secondColWidth}" class="{$secondColStyle}">
700
                <table class="default" width="100%">
701
                  <xsl:for-each select="quantitativeAccuracyReport">
702
                     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
703
                         Accuracy Value
704
                      </td>
705
                      <td width="{$secondColWidth}" class="{$secondColStyle}">
706
                        <xsl:value-of select="quantitativeAccuracyValue"/>
707
                      </td>
708
                    </tr>
709
                    <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
710
                         Method
711
                      </td>
712
                      <td width="{$secondColWidth}" class="{$secondColStyle}">
713
                        <xsl:value-of select="quantitativeAccuracyMethod"/>
714
                      </td>
715
                    </tr>
716
                  </xsl:for-each>
717
                </table>
718
            </td>
719
       </tr>
720
   </xsl:if>
721
 </xsl:template>
722
 
723
 <!--********************************************************
724
     imageDescription
725
     *********************************************************-->
726
  <xsl:template name="imageDescription">
727
    <xsl:param name="spatialrasterfirstColStyle"/>
728
    <xsl:for-each select="illuminationElevationAngle">
729
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
730
             Illumination Elevation
731
            </td>
732
            <td width="{$secondColWidth}" class="{$secondColStyle}">
733
                <xsl:value-of select="."/>
734
            </td>
735
       </tr>
736
    </xsl:for-each>
737
    <xsl:for-each select="illuminationAzimuthAngle">
738
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
739
             Illumination Azimuth
740
            </td>
741
            <td width="{$secondColWidth}" class="{$secondColStyle}">
742
                <xsl:value-of select="."/>
743
            </td>
744
       </tr>
745
    </xsl:for-each>
746
    <xsl:for-each select="imageOrientationAngle">
747
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
748
             Image Orientation
749
            </td>
750
            <td width="{$secondColWidth}" class="{$secondColStyle}">
751
                <xsl:value-of select="."/>
752
            </td>
753
       </tr>
754
    </xsl:for-each>
755
    <xsl:for-each select="imagingCondition">
756
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
757
             Code Affectting Quality of Image
758
            </td>
759
            <td width="{$secondColWidth}" class="{$secondColStyle}">
760
                <xsl:value-of select="."/>
761
            </td>
762
       </tr>
763
    </xsl:for-each>
764
   <xsl:for-each select="imagingCondition">
765
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
766
             Code Affectting Quality of Image
767
            </td>
768
            <td width="{$secondColWidth}" class="{$secondColStyle}">
769
                <xsl:value-of select="."/>
770
            </td>
771
       </tr>
772
    </xsl:for-each> 
773
    <xsl:for-each select="imageQualityCode">
774
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
775
             Quality
776
            </td>
777
            <td width="{$secondColWidth}" class="{$secondColStyle}">
778
                <xsl:value-of select="."/>
779
            </td>
780
       </tr>
781
    </xsl:for-each>
782
    <xsl:for-each select="cloudCoverPercentage">
783
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
784
             Cloud Coverage
785
            </td>
786
            <td width="{$secondColWidth}" class="{$secondColStyle}">
787
                <xsl:value-of select="."/>
788
            </td>
789
       </tr>
790
    </xsl:for-each>
791
    <xsl:for-each select="preProcessingTypeCode">
792
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
793
             PreProcessing
794
            </td>
795
            <td width="{$secondColWidth}" class="{$secondColStyle}">
796
                <xsl:value-of select="."/>
797
            </td>
798
       </tr>
799
    </xsl:for-each>
800
    <xsl:for-each select="compressionGenerationQuality">
801
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
802
             Compression Quality
803
            </td>
804
            <td width="{$secondColWidth}" class="{$secondColStyle}">
805
                <xsl:value-of select="."/>
806
            </td>
807
       </tr>
808
    </xsl:for-each>
809
    <xsl:for-each select="triangulationIndicator">
810
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
811
             Triangulation Indicator
812
            </td>
813
            <td width="{$secondColWidth}" class="{$secondColStyle}">
814
                <xsl:value-of select="."/>
815
            </td>
816
       </tr>
817
    </xsl:for-each>
818
    <xsl:for-each select="radionmetricDataAvailability">
819
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
820
             Availability of Radionmetric Data
821
            </td>
822
            <td width="{$secondColWidth}" class="{$secondColStyle}">
823
                <xsl:value-of select="."/>
824
            </td>
825
       </tr>
826
    </xsl:for-each>
827
    <xsl:for-each select="cameraCalibrationInformationAvailability">
828
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
829
             Availability of Camera Calibration Correction
830
            </td>
831
            <td width="{$secondColWidth}" class="{$secondColStyle}">
832
                <xsl:value-of select="."/>
833
            </td>
834
       </tr>
835
    </xsl:for-each>
836
    <xsl:for-each select="filmDistortionInformationAvailability">
837
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
838
             Availability of Calibration Reseau
839
            </td>
840
            <td width="{$secondColWidth}" class="{$secondColStyle}">
841
                <xsl:value-of select="."/>
842
            </td>
843
       </tr>
844
    </xsl:for-each>
845
    <xsl:for-each select="lensDistortionInformationAvailability">
846
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
847
             Availability of Lens Aberration Correction
848
            </td>
849
            <td width="{$secondColWidth}" class="{$secondColStyle}">
850
                <xsl:value-of select="."/>
851
            </td>
852
       </tr>
853
    </xsl:for-each>
854
    <xsl:for-each select="bandDescription">
855
     <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
856
             Availability of Lens Aberration Correction
857
            </td>
858
            <td width="{$secondColWidth}" class="{$secondColStyle}">
859
               <xsl:call-template name="bandDescription">
860
                  <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
861
               </xsl:call-template>
862
            </td>
863
      </tr>
864
    </xsl:for-each>
865
  </xsl:template>
866
  
867
  <!--***********************************************
868
      band description
869
      ************************************************-->
870
  <xsl:template name="bandDescription">
871
    <xsl:param name="spatialrasterfirstColStyle"/>
872
    <table class="default" width="100%">
873
      <xsl:for-each select="sequenceIdentifier">
874
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
875
            Sequence Identifier
876
            </td>
877
            <td width="{$secondColWidth}" class="{$secondColStyle}">
878
                <xsl:value-of select="."/>
879
            </td>
880
        </tr>
881
     </xsl:for-each>
882
     <xsl:for-each select="highWavelength">
883
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
884
             High Wave Length
885
            </td>
886
            <td width="{$secondColWidth}" class="{$secondColStyle}">
887
                <xsl:value-of select="."/>
888
            </td>
889
        </tr>
890
     </xsl:for-each>
891
     <xsl:for-each select="lowWaveLength">
892
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
893
             High Wave Length
894
            </td>
895
            <td width="{$secondColWidth}" class="{$secondColStyle}">
896
                <xsl:value-of select="."/>
897
            </td>
898
        </tr>
899
     </xsl:for-each>
900
     <xsl:for-each select="waveLengthUnits">
901
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
902
             Wave Length Units
903
            </td>
904
            <td width="{$secondColWidth}" class="{$secondColStyle}">
905
                <xsl:value-of select="."/>
906
            </td>
907
        </tr>
908
     </xsl:for-each>
909
     <xsl:for-each select="peakResponse">
910
        <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
911
             Peak Response
912
            </td>
913
            <td width="{$secondColWidth}" class="{$secondColStyle}">
914
                <xsl:value-of select="."/>
915
            </td>
916
        </tr>
917
     </xsl:for-each>
918
    </table>
919
  </xsl:template>
920
 
921
  <xsl:template name="spatialRasterShowDistribution">
922
     <xsl:param name="spatialrasterfirstColStyle"/>
923
     <xsl:param name="spatialrastersubHeaderStyle"/>
924
     <xsl:param name="docid"/>
925
     <xsl:param name="level">entitylevel</xsl:param>
926
     <xsl:param name="entitytype">spatialRaster</xsl:param>
927
     <xsl:param name="entityindex"/>
928
     <xsl:param name="physicalindex"/>
929
     
930
    <xsl:for-each select="distribution">
931
      <tr><td colspan="2">
932
        <xsl:call-template name="distribution">
933
          <xsl:with-param name="docid" select="$docid"/>
934
          <xsl:with-param name="level" select="$level"/>
935
          <xsl:with-param name="entitytype" select="$entitytype"/>
936
          <xsl:with-param name="entityindex" select="$entityindex"/>
937
          <xsl:with-param name="physicalindex" select="$physicalindex"/>
938
          <xsl:with-param name="distributionindex" select="position()"/>
939
          <xsl:with-param name="disfirstColStyle" select="$spatialrasterfirstColStyle"/>
940
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrasterHeaderStyle"/>
941
        </xsl:call-template>
942
      </td></tr>
943
    </xsl:for-each>
944
  </xsl:template>
945
  
946
  
947
  <xsl:template name="spatialRasterAttributeList">
948
    <xsl:param name="spatialrasterfirstColStyle"/>
949
    <xsl:param name="spatialrastersubHeaderStyle"/>
950
    <xsl:param name="docid"/>
951
    <xsl:param name="entitytype">spatialRaster</xsl:param>
952
    <xsl:param name="entityindex"/>
953
    <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
954
        <xsl:text>Attribute Info:</xsl:text>
955
    </td></tr>
956
    <tr><td colspan="2">
957
         <xsl:call-template name="attributelist">
958
           <xsl:with-param name="docid" select="$docid"/>
959
           <xsl:with-param name="entitytype" select="$entitytype"/>
960
           <xsl:with-param name="entityindex" select="$entityindex"/>
961
         </xsl:call-template>
962
       </td>
963
    </tr>
964
  </xsl:template>
965
  
966
  
967

    
968
</xsl:stylesheet>
(26-26/33)