Project

General

Profile

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