Project

General

Profile

« Previous | Next » 

Revision 1672

Added by Jing Tao over 21 years ago

Add new module to handle spatial raster entity.

View differences:

lib/style/eml2/eml-spatialraster-2.0.0.xsl
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$'
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
    <xsl:param name="spacialrasterfirstColStyle"/>
71
    <xsl:param name="spacialrastersubHeaderStyle"/>
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:call-template>
129
      </td></tr>
130
    </xsl:for-each>
131
    <xsl:if test="constraint">
132
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
133
        Constraint
134
      </td></tr>
135
    </xsl:if>
136
    <xsl:for-each select="constraint">
137
      <tr><td colspan="2">
138
        <xsl:call-template name="constraint">
139
          <xsl:with-param name="constraintfirstColStyle" select="$spatialrasterfirstColStyle"/>
140
        </xsl:call-template>
141
      </td></tr>
142
    </xsl:for-each>
143
    <xsl:for-each select="spatialReference">
144
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
145
        Spatial Reference
146
      </td></tr>
147
      <xsl:call-template name="spatialReference">
148
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
149
      </xsl:call-template>
150
    </xsl:for-each>
151
     <xsl:for-each select="georeferenceInfo">
152
       <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
153
        Grid Postion
154
      </td></tr>
155
      <xsl:call-template name="georeferenceInfo">
156
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
157
      </xsl:call-template>
158
    </xsl:for-each>
159
    <xsl:for-each select="horizontalAccuracy">
160
      <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
161
        Horizontal Accuracy
162
      </td></tr>
163
      <xsl:call-template name="dataQuality">
164
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
165
      </xsl:call-template>
166
    </xsl:for-each>
167
    <xsl:for-each select="verticalAccuracy">
168
      <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
169
        Vertical Accuracy
170
      </td></tr>
171
      <xsl:call-template name="dataQuality">
172
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
173
      </xsl:call-template>
174
    </xsl:for-each>
175
    <xsl:for-each select="cellSizeXDirection">
176
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
177
            Cell Size(X)
178
            </td>
179
            <td width="{$secondColWidth}" class="{$secondColStyle}">
180
              <xsl:value-of select="."/>
181
            </td>
182
       </tr>
183
    </xsl:for-each>
184
    <xsl:for-each select="cellSizeYDirection">
185
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
186
            Cell Size(Y)
187
            </td>
188
            <td width="{$secondColWidth}" class="{$secondColStyle}">
189
              <xsl:value-of select="."/>
190
            </td>
191
       </tr>
192
    </xsl:for-each>
193
    <xsl:for-each select="numberOfBands">
194
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
195
            Number of Bands
196
            </td>
197
            <td width="{$secondColWidth}" class="{$secondColStyle}">
198
              <xsl:value-of select="."/>
199
            </td>
200
       </tr>
201
    </xsl:for-each>
202
    <xsl:for-each select="rasterOrigin">
203
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
204
            Origin
205
            </td>
206
            <td width="{$secondColWidth}" class="{$secondColStyle}">
207
              <xsl:value-of select="."/>
208
            </td>
209
       </tr>
210
    </xsl:for-each>
211
    <xsl:for-each select="rows">
212
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
213
            Max Raster Objects(Y)
214
            </td>
215
            <td width="{$secondColWidth}" class="{$secondColStyle}">
216
              <xsl:value-of select="."/>
217
            </td>
218
       </tr>
219
    </xsl:for-each>
220
    <xsl:for-each select="columns">
221
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
222
            Max Raster Objects(X)
223
            </td>
224
            <td width="{$secondColWidth}" class="{$secondColStyle}">
225
              <xsl:value-of select="."/>
226
            </td>
227
       </tr>
228
    </xsl:for-each>
229
    <xsl:for-each select="verticals">
230
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
231
            Max Raster Objects(Z)
232
            </td>
233
            <td width="{$secondColWidth}" class="{$secondColStyle}">
234
              <xsl:value-of select="."/>
235
            </td>
236
       </tr>
237
    </xsl:for-each>
238
    <xsl:for-each select="cellGeometry">
239
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
240
            Cell Geometry
241
            </td>
242
            <td width="{$secondColWidth}" class="{$secondColStyle}">
243
              <xsl:value-of select="."/>
244
            </td>
245
       </tr>
246
    </xsl:for-each>
247
    <xsl:for-each select="toneGradation">
248
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
249
            Number of Colors
250
            </td>
251
            <td width="{$secondColWidth}" class="{$secondColStyle}">
252
              <xsl:value-of select="."/>
253
            </td>
254
       </tr>
255
    </xsl:for-each>
256
    <xsl:for-each select="scaleFactor">
257
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
258
            Scale Factor
259
            </td>
260
            <td width="{$secondColWidth}" class="{$secondColStyle}">
261
              <xsl:value-of select="."/>
262
            </td>
263
       </tr>
264
    </xsl:for-each>
265
     <xsl:for-each select="offset">
266
       <tr><td width="{$firstColWidth}" class="{$spatialfirstColStyle}">
267
            Offset
268
            </td>
269
            <td width="{$secondColWidth}" class="{$secondColStyle}">
270
              <xsl:value-of select="."/>
271
            </td>
272
       </tr>
273
    </xsl:for-each>
274
    <xsl:for-each select="imageDescription">
275
      <tr><td class="{$spatialrasterHeaderStyle}" colspan="2">
276
        Image Info
277
      </td></tr>
278
      <xsl:call-template name="imageDescription">
279
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
280
      </xsl:call-template>
281
    </xsl:for-each>
282
    <!-- Here to display distribution info-->
283
    <xsl:for-each select="physical">
284
       <xsl:call-template name="showdistribution">
285
          <xsl:with-param name="docid" select="$docid"/>
286
          <xsl:with-param name="entityindex" select="$entityindex"/>
287
          <xsl:with-param name="physicalindex" select="position()"/>
288
          <xsl:with-param name="disfirstColStyle" select="$spatialrasterfirstColStyle"/>
289
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrasterHeaderStyle"/>
290
       </xsl:call-template>
291
    </xsl:for-each>
292
    <xsl:for-each select="attributeList">
293
      <xsl:call-template name="spatialRasterAttributeList">
294
        <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
295
        <xsl:with-param name="spatialrasterHeaderStyle" select="$spatialrasterHeaderStyle"/>  
296
        <xsl:with-param name="docid" select="$docid"/>
297
        <xsl:with-param name="entityindex" select="$entityindex"/>
298
      </xsl:call-template>
299
    </xsl:for-each>
300
    
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="showdistribution">
922
     <xsl:param name="spatialrasterfirstColStyle"/>
923
     <xsl:param name="spatialrasterHeaderStyle"/>
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="spatialrasterHeaderStyle"/>
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>
0 969

  

Also available in: Unified diff