Project

General

Profile

1 1672 tao
<?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$'
10
  *     '$Date$'
11
  * '$Revision$'
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 1673 tao
    <xsl:param name="spatialrasterfirstColStyle"/>
71
    <xsl:param name="spatialrastersubHeaderStyle"/>
72 1672 tao
    <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 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
97 1672 tao
        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 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
110 1672 tao
        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 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
121 1672 tao
        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 1680 tao
          <xsl:with-param name="methodsubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
129 1672 tao
        </xsl:call-template>
130
      </td></tr>
131
    </xsl:for-each>
132
    <xsl:if test="constraint">
133 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
134 1672 tao
        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 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
146 1672 tao
        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 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
154 1672 tao
        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 1680 tao
      <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
162 1672 tao
        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 1680 tao
      <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
170 1672 tao
        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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
178 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
187 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
196 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
205 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
214 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
223 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
232 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
241 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
250 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
259 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
268 1672 tao
            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 1680 tao
      <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
277 1672 tao
        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 1673 tao
    <xsl:for-each select="attributeList">
284
      <xsl:call-template name="spatialRasterAttributeList">
285
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
286 1680 tao
        <xsl:with-param name="spatialrastersubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
287 1673 tao
        <xsl:with-param name="docid" select="$docid"/>
288
        <xsl:with-param name="entityindex" select="$entityindex"/>
289
      </xsl:call-template>
290
    </xsl:for-each>
291 1672 tao
    <!-- Here to display distribution info-->
292
    <xsl:for-each select="physical">
293 1673 tao
       <xsl:call-template name="spatialRasterShowDistribution">
294 1672 tao
          <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 1680 tao
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
299 1672 tao
       </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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
332 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
341 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
353 1672 tao
            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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
364 1672 tao
            Projection
365
            </td>
366
            <td width="{$secondColWidth}" class="{$secondColStyle}">
367
               <table class="default" width="100%">
368
                 <xsl:for-each select="parameter">
369 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
370 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
379 1672 tao
                          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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
393 1672 tao
            Altitude System Definition
394
            </td>
395
            <td width="{$secondColWidth}" class="{$secondColStyle}">
396
               <table class="default" width="100%">
397
                 <xsl:for-each select="altitudeDatumName">
398 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
399 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
408 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
417 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
426 1672 tao
                          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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
439 1672 tao
            Depth System Definition
440
            </td>
441
            <td width="{$secondColWidth}" class="{$secondColStyle}">
442
               <table class="default" width="100%">
443
                 <xsl:for-each select="depthDatumName">
444 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
445 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
454 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
463 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
472 1672 tao
                          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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
490 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
499 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
508 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
517 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
534 1672 tao
            Corner Point
535
            </td>
536
            <td width="{$secondColWidth}" class="{$secondColStyle}">
537
               <table class="default" width="100%">
538
                 <xsl:for-each select="corner">
539 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
540 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
549 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
558 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
567 1672 tao
                          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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
580 1672 tao
            Control Point
581
            </td>
582
            <td width="{$secondColWidth}" class="{$secondColStyle}">
583
               <table class="default" width="100%">
584
                 <xsl:for-each select="column">
585 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
586 1672 tao
                          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 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
595 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
604 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
613 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
622 1672 tao
                          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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
635 1672 tao
            Bilinear Fit
636
            </td>
637
            <td width="{$secondColWidth}" class="{$secondColStyle}">
638
               <table class="default" width="100%">
639
                 <xsl:for-each select="xIntercept">
640 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
641 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
650 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
659 1672 tao
                          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 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
668 1672 tao
                          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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
688 1672 tao
             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 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
697 1672 tao
             Quantitative Report
698
            </td>
699
            <td width="{$secondColWidth}" class="{$secondColStyle}">
700
                <table class="default" width="100%">
701
                  <xsl:for-each select="quantitativeAccuracyReport">
702 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
703 1672 tao
                         Accuracy Value
704
                      </td>
705
                      <td width="{$secondColWidth}" class="{$secondColStyle}">
706
                        <xsl:value-of select="quantitativeAccuracyValue"/>
707
                      </td>
708
                    </tr>
709 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
710 1672 tao
                         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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
730 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
739 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
748 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
757 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
766 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
775 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
784 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
793 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
802 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
811 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
820 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
829 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
838 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
847 1672 tao
             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 1680 tao
     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
856 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
875 1672 tao
            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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
884 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
893 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
902 1672 tao
             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 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
911 1672 tao
             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 1673 tao
  <xsl:template name="spatialRasterShowDistribution">
922 1672 tao
     <xsl:param name="spatialrasterfirstColStyle"/>
923 1673 tao
     <xsl:param name="spatialrastersubHeaderStyle"/>
924 1672 tao
     <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 1680 tao
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
941 1672 tao
        </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 1673 tao
    <xsl:param name="spatialrastersubHeaderStyle"/>
950 1672 tao
    <xsl:param name="docid"/>
951
    <xsl:param name="entitytype">spatialRaster</xsl:param>
952
    <xsl:param name="entityindex"/>
953 1680 tao
    <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
954 1672 tao
        <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>