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 1696 tao
      <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
44 1672 tao
        <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 1732 tao
       <xsl:call-template name="entityadditionalInfo">
91 1672 tao
          <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 1711 tao
        Physical Structure Description:
98 1672 tao
      </td></tr>
99
      <xsl:for-each select="physical">
100 1696 tao
      <tr><td colspan="2">
101 1672 tao
        <xsl:call-template name="physical">
102
         <xsl:with-param name="physicalfirstColStyle" select="$spatialrasterfirstColStyle"/>
103
         <xsl:with-param name="notshowdistribution">yes</xsl:with-param>
104
        </xsl:call-template>
105 1696 tao
         </td></tr>
106 1672 tao
      </xsl:for-each>
107 1696 tao
    </xsl:if>
108 1672 tao
    <xsl:if test="coverage">
109 1680 tao
       <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
110 1711 tao
        Coverage Description:
111 1672 tao
      </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 1711 tao
        Method Description:
122 1672 tao
      </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 1711 tao
        Constraint:
135 1672 tao
      </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 1711 tao
        Spatial Reference:
147 1672 tao
      </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 1711 tao
        Grid Postion:
155 1672 tao
      </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 1711 tao
        Horizontal Accuracy:
163 1672 tao
      </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 1711 tao
        Vertical Accuracy:
171 1672 tao
      </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 1711 tao
            Cell Size(X):
179 1672 tao
            </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 1711 tao
            Cell Size(Y):
188 1672 tao
            </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 1711 tao
            Number of Bands:
197 1672 tao
            </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 1711 tao
            Origin:
206 1672 tao
            </td>
207
            <td width="{$secondColWidth}" class="{$secondColStyle}">
208
              <xsl:value-of select="."/>
209
            </td>
210
       </tr>
211
    </xsl:for-each>
212 1711 tao
    <xsl:for-each select="columns">
213 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
214 1711 tao
            Max Raster Objects(X):
215 1672 tao
            </td>
216
            <td width="{$secondColWidth}" class="{$secondColStyle}">
217
              <xsl:value-of select="."/>
218
            </td>
219
       </tr>
220
    </xsl:for-each>
221 1711 tao
    <xsl:for-each select="rows">
222 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
223 1711 tao
            Max Raster Objects(Y):
224 1672 tao
            </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 1711 tao
            Max Raster Objects(Z):
233 1672 tao
            </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 1711 tao
            Cell Geometry:
242 1672 tao
            </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 1711 tao
            Number of Colors:
251 1672 tao
            </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 1711 tao
            Scale Factor:
260 1672 tao
            </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 1711 tao
            Offset:
269 1672 tao
            </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 1711 tao
        Image Info:
278 1672 tao
      </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 1711 tao
            Name of Coordinate System:
333 1672 tao
            </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 1732 tao
            Definition of <xsl:text> </xsl:text><xsl:value-of select="./@name"/> <xsl:text> </xsl:text> (Geographic Coordinate System):
342 1672 tao
            </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 1732 tao
            Definition of<xsl:text> </xsl:text><xsl:value-of select="./@name"/><xsl:text> </xsl:text>(Geographic Coordinate System):
354 1672 tao
            </td>
355 1706 tao
            <td width="{$secondColWidth}">
356 1672 tao
              <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 1732 tao
            Projection in Geo Coord. System:
365 1672 tao
            </td>
366 1706 tao
            <td width="{$secondColWidth}">
367 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
368 1672 tao
                 <xsl:for-each select="parameter">
369 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
370 1711 tao
                          <xsl:value-of select="./@name"/>:
371 1672 tao
                         </td>
372 1706 tao
                         <td width="{$secondColWidth}">
373 1696 tao
                             <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
374 1686 tao
                                <tr>
375
                                    <td width="{$firstColWidth}" class="{$secondColStyle}">
376
                                      <xsl:value-of select="./@value"/>
377
                                    </td>
378
                                    <td width="{$secondColWidth}" class="{$secondColStyle}">
379
                                       <xsl:value-of select="./@description"/>
380
                                    </td>
381
                                 </tr>
382
                             </table>
383 1672 tao
                          </td>
384
                      </tr>
385
                 </xsl:for-each>
386
                 <xsl:for-each select="unit">
387 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
388 1711 tao
                          Unit:
389 1672 tao
                        </td>
390
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
391 1686 tao
                           <xsl:value-of select="./@name"/>
392 1672 tao
                        </td>
393
                   </tr>
394
                </xsl:for-each>
395
              </table>
396
            </td>
397
       </tr>
398
     </xsl:for-each>
399
    </xsl:for-each>
400
    <xsl:for-each select="vertCoordSys/altitudeSysDef">
401 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
402 1711 tao
            Altitude System Definition:
403 1672 tao
            </td>
404 1706 tao
            <td width="{$secondColWidth}">
405 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
406 1672 tao
                 <xsl:for-each select="altitudeDatumName">
407 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
408 1711 tao
                          Datum:
409 1672 tao
                         </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="altitudeResolution">
416 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
417 1711 tao
                          Resolution:
418 1672 tao
                        </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="altitudeDistanceUnits">
425 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
426 1711 tao
                          Distance Unit:
427 1672 tao
                        </td>
428
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
429
                           <xsl:value-of select="."/>
430
                        </td>
431
                   </tr>
432
                </xsl:for-each>
433
                <xsl:for-each select="altitudeEncodingMethod">
434 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
435 1711 tao
                          Encoding Method:
436 1672 tao
                        </td>
437
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
438
                           <xsl:value-of select="."/>
439
                        </td>
440
                   </tr>
441
                </xsl:for-each>
442
              </table>
443
            </td>
444
       </tr>
445
    </xsl:for-each>
446
    <xsl:for-each select="vertCoordSys/depthSysDef">
447 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
448 1711 tao
            Depth System Definition:
449 1672 tao
            </td>
450 1706 tao
            <td width="{$secondColWidth}">
451 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
452 1672 tao
                 <xsl:for-each select="depthDatumName">
453 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
454 1711 tao
                          Datum:
455 1672 tao
                         </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="depthResolution">
462 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
463 1711 tao
                          Resolution:
464 1672 tao
                        </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="depthDistanceUnits">
471 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
472 1711 tao
                          Distance Unit:
473 1672 tao
                        </td>
474
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
475
                           <xsl:value-of select="."/>
476
                        </td>
477
                   </tr>
478
                </xsl:for-each>
479
                <xsl:for-each select="depthEncodingMethod">
480 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
481 1711 tao
                          Encoding Method:
482 1672 tao
                        </td>
483
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
484
                           <xsl:value-of select="."/>
485
                        </td>
486
                   </tr>
487
                </xsl:for-each>
488
              </table>
489
            </td>
490
       </tr>
491
    </xsl:for-each>
492
  </xsl:template>
493
494
  <xsl:template name="geogCoordSysType">
495
   <xsl:param name="spatialrasterfirstColStyle"/>
496 1696 tao
   <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
497 1672 tao
      <xsl:for-each select="datum">
498 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
499 1711 tao
             Datum:
500 1672 tao
            </td>
501
            <td width="{$secondColWidth}" class="{$secondColStyle}">
502 1686 tao
              <xsl:value-of select="./@name"/>
503 1672 tao
            </td>
504
        </tr>
505
      </xsl:for-each>
506
      <xsl:for-each select="spheroid">
507 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
508 1711 tao
             Spheroid:
509 1672 tao
            </td>
510 1706 tao
            <td width="{$secondColWidth}">
511 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
512 1686 tao
                  <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
513 1711 tao
                       Name:
514 1686 tao
                       </td>
515
                       <td width="{$secondColWidth}" class="{$secondColStyle}">
516
                        <xsl:value-of select="./@name"/>
517
                       </td>
518
                   </tr>
519
                   <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
520 1711 tao
                       Semi Axis Major:
521 1686 tao
                       </td>
522
                       <td width="{$secondColWidth}" class="{$secondColStyle}">
523
                        <xsl:value-of select="./@semiAxisMajor"/>
524
                       </td>
525
                   </tr>
526
                   <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
527 1711 tao
                       Denom Flat Ratio:
528 1686 tao
                       </td>
529
                       <td width="{$secondColWidth}" class="{$secondColStyle}">
530
                        <xsl:value-of select="./@denomFlatRatio"/>
531
                       </td>
532
                   </tr>
533
               </table>
534
535 1672 tao
            </td>
536
        </tr>
537
      </xsl:for-each>
538
       <xsl:for-each select="primeMeridian">
539 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
540 1711 tao
             Prime Meridian:
541 1672 tao
            </td>
542 1706 tao
            <td width="{$secondColWidth}">
543 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
544 1686 tao
                  <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
545 1711 tao
                       Name:
546 1686 tao
                       </td>
547
                       <td width="{$secondColWidth}" class="{$secondColStyle}">
548
                        <xsl:value-of select="./@name"/>
549
                       </td>
550
                   </tr>
551
                   <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
552 1711 tao
                       Longitude:
553 1686 tao
                       </td>
554
                       <td width="{$secondColWidth}" class="{$secondColStyle}">
555
                        <xsl:value-of select="./@longitude"/>
556
                       </td>
557
                   </tr>
558
               </table>
559 1672 tao
            </td>
560
        </tr>
561
      </xsl:for-each>
562
     <xsl:for-each select="unit">
563 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
564 1711 tao
             Unit:
565 1672 tao
            </td>
566
            <td width="{$secondColWidth}" class="{$secondColStyle}">
567 1686 tao
              <xsl:value-of select="./@name"/>
568 1672 tao
            </td>
569
        </tr>
570
      </xsl:for-each>
571
   </table>
572
  </xsl:template>
573
574
  <!--*******************************************************
575
       georeferenceinfo
576
      *******************************************************-->
577
 <xsl:template name="georeferenceInfo">
578
    <xsl:param name="spatialrasterfirstColStyle"/>
579
    <xsl:for-each select="cornerPoint">
580 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
581 1711 tao
            Corner Point:
582 1672 tao
            </td>
583 1706 tao
            <td width="{$secondColWidth}">
584 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
585 1672 tao
                 <xsl:for-each select="corner">
586 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
587 1711 tao
                          Corner:
588 1672 tao
                         </td>
589
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
590
                            <xsl:value-of select="."/>
591
                          </td>
592
                      </tr>
593
                 </xsl:for-each>
594
                 <xsl:for-each select="xCoordinate">
595 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
596 1711 tao
                          xCoordinate:
597 1672 tao
                        </td>
598
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
599
                           <xsl:value-of select="."/>
600
                        </td>
601
                   </tr>
602
                </xsl:for-each>
603
                <xsl:for-each select="yCoordinate">
604 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
605 1711 tao
                          yCoordinate:
606 1672 tao
                        </td>
607
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
608
                           <xsl:value-of select="."/>
609
                        </td>
610
                   </tr>
611
                </xsl:for-each>
612
                <xsl:for-each select="pointInPixel">
613 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
614 1711 tao
                          Point in Pixel:
615 1672 tao
                        </td>
616
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
617
                           <xsl:value-of select="."/>
618
                        </td>
619
                   </tr>
620
                </xsl:for-each>
621
              </table>
622
            </td>
623
       </tr>
624
    </xsl:for-each>
625
    <xsl:for-each select="controlPoint">
626 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
627 1711 tao
            Control Point:
628 1672 tao
            </td>
629 1706 tao
            <td width="{$secondColWidth}">
630 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
631 1672 tao
                 <xsl:for-each select="column">
632 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
633 1711 tao
                          Column Location:
634 1672 tao
                         </td>
635
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
636
                            <xsl:value-of select="."/>
637
                          </td>
638
                      </tr>
639
                 </xsl:for-each>
640
                 <xsl:for-each select="row">
641 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
642 1711 tao
                          Row Location:
643 1672 tao
                         </td>
644
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
645
                            <xsl:value-of select="."/>
646
                          </td>
647
                      </tr>
648
                 </xsl:for-each>
649
                 <xsl:for-each select="xCoordinate">
650 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
651 1711 tao
                          xCoordinate:
652 1672 tao
                        </td>
653
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
654
                           <xsl:value-of select="."/>
655
                        </td>
656
                   </tr>
657
                </xsl:for-each>
658
                <xsl:for-each select="yCoordinate">
659 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
660 1711 tao
                          yCoordinate:
661 1672 tao
                        </td>
662
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
663
                           <xsl:value-of select="."/>
664
                        </td>
665
                   </tr>
666
                </xsl:for-each>
667
                <xsl:for-each select="pointInPixel">
668 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
669 1711 tao
                          Point in Pixel:
670 1672 tao
                        </td>
671
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
672
                           <xsl:value-of select="."/>
673
                        </td>
674
                   </tr>
675
                </xsl:for-each>
676
              </table>
677
            </td>
678
       </tr>
679
    </xsl:for-each>
680
    <xsl:for-each select="bilinearFit">
681 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
682 1711 tao
            Bilinear Fit:
683 1672 tao
            </td>
684 1706 tao
            <td width="{$secondColWidth}">
685 1696 tao
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
686 1672 tao
                 <xsl:for-each select="xIntercept">
687 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
688 1711 tao
                          X Intercept:
689 1672 tao
                         </td>
690
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
691
                            <xsl:value-of select="."/>
692
                          </td>
693
                      </tr>
694
                 </xsl:for-each>
695
                 <xsl:for-each select="xSlope">
696 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
697 1711 tao
                          X Slope:
698 1672 tao
                        </td>
699
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
700
                           <xsl:value-of select="."/>
701
                        </td>
702
                   </tr>
703
                </xsl:for-each>
704
                <xsl:for-each select="yIntercept">
705 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
706 1711 tao
                          Y Intercept:
707 1672 tao
                        </td>
708
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
709
                           <xsl:value-of select="."/>
710
                        </td>
711
                   </tr>
712
                </xsl:for-each>
713
                <xsl:for-each select="ySlope">
714 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
715 1711 tao
                          Y Slope:
716 1672 tao
                        </td>
717
                        <td width="{$secondColWidth}" class="{$secondColStyle}">
718
                           <xsl:value-of select="."/>
719
                        </td>
720
                   </tr>
721
                </xsl:for-each>
722
              </table>
723
            </td>
724
       </tr>
725
    </xsl:for-each>
726
 </xsl:template>
727
728
 <!--********************************************************
729
     data quality
730
     ********************************************************-->
731
 <xsl:template name="dataQuality">
732
   <xsl:param name="spatialrasterfirstColStyle"/>
733
   <xsl:for-each select="accuracyReport">
734 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
735 1711 tao
             Report:
736 1672 tao
            </td>
737
            <td width="{$secondColWidth}" class="{$secondColStyle}">
738
                <xsl:value-of select="."/>
739
            </td>
740
       </tr>
741
   </xsl:for-each>
742
   <xsl:if test="quantitativeAccuracyReport">
743 1680 tao
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
744 1711 tao
             Quantitative Report:
745 1672 tao
            </td>
746 1706 tao
            <td width="{$secondColWidth}">
747 1696 tao
                <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
748 1672 tao
                  <xsl:for-each select="quantitativeAccuracyReport">
749 1680 tao
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
750 1711 tao
                         Accuracy Value:
751 1672 tao
                      </td>
752
                      <td width="{$secondColWidth}" class="{$secondColStyle}">
753
                        <xsl:value-of select="quantitativeAccuracyValue"/>
754
                      </td>
755
                    </tr>
756 1680 tao
                    <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
757 1711 tao
                         Method:
758 1672 tao
                      </td>
759
                      <td width="{$secondColWidth}" class="{$secondColStyle}">
760
                        <xsl:value-of select="quantitativeAccuracyMethod"/>
761
                      </td>
762
                    </tr>
763
                  </xsl:for-each>
764
                </table>
765
            </td>
766
       </tr>
767
   </xsl:if>
768
 </xsl:template>
769
770
 <!--********************************************************
771
     imageDescription
772
     *********************************************************-->
773
  <xsl:template name="imageDescription">
774
    <xsl:param name="spatialrasterfirstColStyle"/>
775
    <xsl:for-each select="illuminationElevationAngle">
776 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
777 1711 tao
             Illumination Elevation:
778 1672 tao
            </td>
779
            <td width="{$secondColWidth}" class="{$secondColStyle}">
780
                <xsl:value-of select="."/>
781
            </td>
782
       </tr>
783
    </xsl:for-each>
784
    <xsl:for-each select="illuminationAzimuthAngle">
785 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
786 1711 tao
             Illumination Azimuth:
787 1672 tao
            </td>
788
            <td width="{$secondColWidth}" class="{$secondColStyle}">
789
                <xsl:value-of select="."/>
790
            </td>
791
       </tr>
792
    </xsl:for-each>
793
    <xsl:for-each select="imageOrientationAngle">
794 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
795 1711 tao
             Image Orientation:
796 1672 tao
            </td>
797
            <td width="{$secondColWidth}" class="{$secondColStyle}">
798
                <xsl:value-of select="."/>
799
            </td>
800
       </tr>
801
    </xsl:for-each>
802
    <xsl:for-each select="imagingCondition">
803 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
804 1711 tao
             Code Affectting Quality of Image:
805 1672 tao
            </td>
806
            <td width="{$secondColWidth}" class="{$secondColStyle}">
807
                <xsl:value-of select="."/>
808
            </td>
809
       </tr>
810
    </xsl:for-each>
811
    <xsl:for-each select="imageQualityCode">
812 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
813 1711 tao
             Quality:
814 1672 tao
            </td>
815
            <td width="{$secondColWidth}" class="{$secondColStyle}">
816
                <xsl:value-of select="."/>
817
            </td>
818
       </tr>
819
    </xsl:for-each>
820
    <xsl:for-each select="cloudCoverPercentage">
821 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
822 1711 tao
             Cloud Coverage:
823 1672 tao
            </td>
824
            <td width="{$secondColWidth}" class="{$secondColStyle}">
825
                <xsl:value-of select="."/>
826
            </td>
827
       </tr>
828
    </xsl:for-each>
829
    <xsl:for-each select="preProcessingTypeCode">
830 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
831 1711 tao
             PreProcessing:
832 1672 tao
            </td>
833
            <td width="{$secondColWidth}" class="{$secondColStyle}">
834
                <xsl:value-of select="."/>
835
            </td>
836
       </tr>
837
    </xsl:for-each>
838
    <xsl:for-each select="compressionGenerationQuality">
839 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
840 1711 tao
             Compression Quality:
841 1672 tao
            </td>
842
            <td width="{$secondColWidth}" class="{$secondColStyle}">
843
                <xsl:value-of select="."/>
844
            </td>
845
       </tr>
846
    </xsl:for-each>
847
    <xsl:for-each select="triangulationIndicator">
848 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
849 1711 tao
             Triangulation Indicator:
850 1672 tao
            </td>
851
            <td width="{$secondColWidth}" class="{$secondColStyle}">
852
                <xsl:value-of select="."/>
853
            </td>
854
       </tr>
855
    </xsl:for-each>
856
    <xsl:for-each select="radionmetricDataAvailability">
857 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
858 1711 tao
             Availability of Radionmetric Data:
859 1672 tao
            </td>
860
            <td width="{$secondColWidth}" class="{$secondColStyle}">
861
                <xsl:value-of select="."/>
862
            </td>
863
       </tr>
864
    </xsl:for-each>
865
    <xsl:for-each select="cameraCalibrationInformationAvailability">
866 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
867 1711 tao
             Availability of Camera Calibration Correction:
868 1672 tao
            </td>
869
            <td width="{$secondColWidth}" class="{$secondColStyle}">
870
                <xsl:value-of select="."/>
871
            </td>
872
       </tr>
873
    </xsl:for-each>
874
    <xsl:for-each select="filmDistortionInformationAvailability">
875 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
876 1711 tao
             Availability of Calibration Reseau:
877 1672 tao
            </td>
878
            <td width="{$secondColWidth}" class="{$secondColStyle}">
879
                <xsl:value-of select="."/>
880
            </td>
881
       </tr>
882
    </xsl:for-each>
883
    <xsl:for-each select="lensDistortionInformationAvailability">
884 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
885 1711 tao
             Availability of Lens Aberration Correction:
886 1672 tao
            </td>
887
            <td width="{$secondColWidth}" class="{$secondColStyle}">
888
                <xsl:value-of select="."/>
889
            </td>
890
       </tr>
891
    </xsl:for-each>
892
    <xsl:for-each select="bandDescription">
893 1680 tao
     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
894 1711 tao
             Availability of Lens Aberration Correction:
895 1672 tao
            </td>
896 1706 tao
            <td width="{$secondColWidth}">
897 1672 tao
               <xsl:call-template name="bandDescription">
898
                  <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
899
               </xsl:call-template>
900
            </td>
901
      </tr>
902
    </xsl:for-each>
903
  </xsl:template>
904
905
  <!--***********************************************
906
      band description
907
      ************************************************-->
908
  <xsl:template name="bandDescription">
909
    <xsl:param name="spatialrasterfirstColStyle"/>
910 1696 tao
    <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
911 1672 tao
      <xsl:for-each select="sequenceIdentifier">
912 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
913 1711 tao
            Sequence Identifier:
914 1672 tao
            </td>
915
            <td width="{$secondColWidth}" class="{$secondColStyle}">
916
                <xsl:value-of select="."/>
917
            </td>
918
        </tr>
919
     </xsl:for-each>
920
     <xsl:for-each select="highWavelength">
921 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
922 1711 tao
             High Wave Length:
923 1672 tao
            </td>
924
            <td width="{$secondColWidth}" class="{$secondColStyle}">
925
                <xsl:value-of select="."/>
926
            </td>
927
        </tr>
928
     </xsl:for-each>
929
     <xsl:for-each select="lowWaveLength">
930 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
931 1711 tao
             High Wave Length:
932 1672 tao
            </td>
933
            <td width="{$secondColWidth}" class="{$secondColStyle}">
934
                <xsl:value-of select="."/>
935
            </td>
936
        </tr>
937
     </xsl:for-each>
938
     <xsl:for-each select="waveLengthUnits">
939 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
940 1711 tao
             Wave Length Units:
941 1672 tao
            </td>
942
            <td width="{$secondColWidth}" class="{$secondColStyle}">
943
                <xsl:value-of select="."/>
944
            </td>
945
        </tr>
946
     </xsl:for-each>
947
     <xsl:for-each select="peakResponse">
948 1680 tao
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
949 1711 tao
             Peak Response:
950 1672 tao
            </td>
951
            <td width="{$secondColWidth}" class="{$secondColStyle}">
952
                <xsl:value-of select="."/>
953
            </td>
954
        </tr>
955
     </xsl:for-each>
956
    </table>
957
  </xsl:template>
958
959 1673 tao
  <xsl:template name="spatialRasterShowDistribution">
960 1672 tao
     <xsl:param name="spatialrasterfirstColStyle"/>
961 1673 tao
     <xsl:param name="spatialrastersubHeaderStyle"/>
962 1672 tao
     <xsl:param name="docid"/>
963
     <xsl:param name="level">entitylevel</xsl:param>
964
     <xsl:param name="entitytype">spatialRaster</xsl:param>
965
     <xsl:param name="entityindex"/>
966
     <xsl:param name="physicalindex"/>
967
968
    <xsl:for-each select="distribution">
969
      <tr><td colspan="2">
970
        <xsl:call-template name="distribution">
971
          <xsl:with-param name="docid" select="$docid"/>
972
          <xsl:with-param name="level" select="$level"/>
973
          <xsl:with-param name="entitytype" select="$entitytype"/>
974
          <xsl:with-param name="entityindex" select="$entityindex"/>
975
          <xsl:with-param name="physicalindex" select="$physicalindex"/>
976
          <xsl:with-param name="distributionindex" select="position()"/>
977
          <xsl:with-param name="disfirstColStyle" select="$spatialrasterfirstColStyle"/>
978 1680 tao
          <xsl:with-param name="dissubHeaderStyle" select="$spatialrastersubHeaderStyle"/>
979 1672 tao
        </xsl:call-template>
980
      </td></tr>
981
    </xsl:for-each>
982
  </xsl:template>
983
984
985
  <xsl:template name="spatialRasterAttributeList">
986
    <xsl:param name="spatialrasterfirstColStyle"/>
987 1673 tao
    <xsl:param name="spatialrastersubHeaderStyle"/>
988 1672 tao
    <xsl:param name="docid"/>
989
    <xsl:param name="entitytype">spatialRaster</xsl:param>
990
    <xsl:param name="entityindex"/>
991 1680 tao
    <tr><td class="{$spatialrastersubHeaderStyle}" colspan="2">
992 1713 tao
        <xsl:text>Attribute(s) Info:</xsl:text>
993 1672 tao
    </td></tr>
994
    <tr><td colspan="2">
995
         <xsl:call-template name="attributelist">
996
           <xsl:with-param name="docid" select="$docid"/>
997
           <xsl:with-param name="entitytype" select="$entitytype"/>
998
           <xsl:with-param name="entityindex" select="$entityindex"/>
999
         </xsl:call-template>
1000
       </td>
1001
    </tr>
1002
  </xsl:template>
1003
1004
</xsl:stylesheet>