Project

General

Profile

« Previous | Next » 

Revision 1686

Added by Jing Tao about 21 years ago

Revise some templates.

View differences:

eml-coverage-2.0.0.xsl
101 101
      <xsl:apply-templates select="geographicDescription"/>
102 102
      <xsl:apply-templates select="boundingCoordinates"/>
103 103
      <xsl:for-each select="datasetGPolygon">
104
         <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
105
            Dataset G-Polygon:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
106
            <xsl:apply-templates select="datasetGPolygonOuterGRing"/></td></tr>
107
         <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
108
             &#160;</td><td width="{$secondColWidth}" class="{$secondColStyle}">
109
         <xsl:for-each select="datasetGPolygonExclusionGRing">
110
             <xsl:apply-templates select="."/>
111
         </xsl:for-each></td></tr>
112
      </xsl:for-each>
104
          <xsl:if test="datasetGPolygonOuterGRing">
105
            <xsl:apply-templates select="datasetGPolygonOuterGRing"/>
106
          </xsl:if>
107
          <xsl:if test="datasetGPolygonExclusionGRing">
108
              <xsl:apply-templates select="datasetGPolygonExclusionGRing"/>
109
          </xsl:if>
110
     </xsl:for-each>
113 111
  </xsl:template>
114 112

  
115 113
  <xsl:template match="geographicDescription">
......
120 118

  
121 119
  <xsl:template match="boundingCoordinates">
122 120
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
123
        Bounding Coordinates:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
124
        <xsl:apply-templates select="westBoundingCoordinate"/></td></tr>
125
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
126
        &#160;</td><td width="{$secondColWidth}" class="{$secondColStyle}">
127
        <xsl:apply-templates select="eastBoundingCoordinate"/></td></tr>
128
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
129
        &#160;</td><td width="{$secondColWidth}" class="{$secondColStyle}">
130
        <xsl:apply-templates select="northBoundingCoordinate"/></td></tr>
131
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
132
        &#160;</td><td width="{$secondColWidth}" class="{$secondColStyle}">
133
        <xsl:apply-templates select="southBoundingCoordinate"/></td></tr>
134
        <xsl:apply-templates select="boundingAltitudes"/>
121
           Bounding Coordinates:
122
          </td>
123
       <td width="{$secondColWidth}">
124
         <table class="tabledefault" width="100%">
125
           <xsl:apply-templates select="westBoundingCoordinate"/>
126
           <xsl:apply-templates select="eastBoundingCoordinate"/>
127
           <xsl:apply-templates select="northBoundingCoordinate"/>
128
           <xsl:apply-templates select="southBoundingCoordinate"/>
129
           <xsl:apply-templates select="boundingAltitudes"/>
130
         </table>
131
      </td>
132
      </tr>
135 133
  </xsl:template>
136 134

  
137 135
  <xsl:template match="westBoundingCoordinate">
138
    <xsl:text>West: &#160;</xsl:text>
139
    <xsl:value-of select="."/>&#160; degrees
136
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
137
         <xsl:text>West: &#160;</xsl:text>
138
        </td>
139
        <td width="{$secondColWidth}" class="{$secondColStyle}">
140
         <xsl:value-of select="."/>&#160; degrees
141
        </td>
142
     </tr>
140 143
  </xsl:template>
141 144

  
142 145
  <xsl:template match="eastBoundingCoordinate">
143
    <xsl:text>East: &#160;</xsl:text>
144
    <xsl:value-of select="."/>&#160; degrees
146
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
147
       <xsl:text>East: &#160;</xsl:text>
148
       </td>
149
       <td width="{$secondColWidth}" class="{$secondColStyle}">
150
         <xsl:value-of select="."/>&#160; degrees
151
       </td>
152
     </tr>
145 153
  </xsl:template>
146 154

  
147 155
  <xsl:template match="northBoundingCoordinate">
148
    <xsl:text>North: &#160;</xsl:text>
149
    <xsl:value-of select="."/>&#160; degrees
156
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
157
         <xsl:text>North: &#160;</xsl:text>
158
        </td>
159
        <td width="{$secondColWidth}" class="{$secondColStyle}">
160
          <xsl:value-of select="."/>&#160; degrees
161
        </td>
162
     </tr>
150 163
  </xsl:template>
151 164

  
152 165
  <xsl:template match="southBoundingCoordinate">
153
    <xsl:text>South: &#160;</xsl:text>
154
    <xsl:value-of select="."/>&#160; degrees
166
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
167
         <xsl:text>South: &#160;</xsl:text>
168
       </td>
169
       <td width="{$secondColWidth}" class="{$secondColStyle}">
170
         <xsl:value-of select="."/>&#160; degrees
171
        </td>
172
    </tr>
155 173
  </xsl:template>
156 174

  
157 175

  
158 176
  <xsl:template match="boundingAltitudes">
177
    
159 178
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
160
        Bounding Altitudes:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
179
        Mimimum Altitude:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
161 180
        <xsl:apply-templates select="altitudeMinimum"/></td></tr>
162 181
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
163
        &#160;</td><td width="{$secondColWidth}" class="{$secondColStyle}">
182
        Maximum Altitude:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
164 183
        <xsl:apply-templates select="altitudeMaximum"/></td></tr>
184
 
165 185
  </xsl:template>
166 186

  
167 187
  <xsl:template match="altitudeMinimum">
168
    <xsl:text>Minimum: &#160;</xsl:text>
169
    <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
188
     <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
170 189
  </xsl:template>
171 190

  
172 191
  <xsl:template match="altitudeMaximum">
173
    <xsl:text>Maximum: &#160;</xsl:text>
174 192
    <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
175 193
  </xsl:template>
176 194

  
177 195
  <xsl:template match="datasetGPolygonOuterGRing">
178
    <xsl:text>Outer Ring: &#160;</xsl:text>
179
    <xsl:for-each select="gringpoint">
180
       <xsl:apply-templates select="."/>
181
    </xsl:for-each>
182
    <xsl:apply-templates select="gring"/>
196
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
197
          <xsl:text>G-Ploygon(Outer Ring): </xsl:text>
198
        </td>
199
        <td width="{$secondColWidth}" class="{$secondColStyle}">
200
           <xsl:apply-templates select="gRingPoint"/>
201
           <xsl:apply-templates select="gRing"/>
202
        </td>
203
     </tr>
183 204
  </xsl:template>
184 205

  
185 206
  <xsl:template match="datasetGPolygonExclusionGRing">
186
    <xsl:text>Exclusion Ring: &#160;</xsl:text>
187
    <xsl:for-each select="gRingPoint">
188
       <xsl:apply-templates select="."/>
189
    </xsl:for-each>
190
    <xsl:apply-templates select="gRing"/>
207
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
208
          <xsl:text>G-Ploygon(Exclusion Ring): </xsl:text>
209
        </td>
210
        <td width="{$secondColWidth}" class="{$secondColStyle}">
211
           <xsl:apply-templates select="gRingPoint"/>
212
           <xsl:apply-templates select="gRing"/>
213
        </td>
214
     </tr>
191 215
  </xsl:template>
192 216

  
193 217
  <xsl:template match="gRing">
......
234 258
  </xsl:template>
235 259
  
236 260
  <xsl:template match="singleDateTime">
237
    <xsl:call-template name="singleDateType" />
238
  </xsl:template>
261
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
262
            Date:
263
         </td>
264
         <td width="{$secondColWidth}" class="{$secondColStyle}">
265
             <xsl:call-template name="singleDateType" />
266
         </td>
267
     </tr>
268
   </xsl:template>
239 269
  
240 270
  <xsl:template match="rangeOfDates">
241 271
     <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
242 272
            Begin:
243 273
         </td>
244 274
         <td width="{$secondColWidth}" class="{$secondColStyle}">
245
                <xsl:apply-templates select="beginDate"/>
246
         </td>
275
            <xsl:apply-templates select="beginDate"/>
276
          </td>
247 277
     </tr>
248 278

  
249 279
     <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
......
253 283
             <xsl:apply-templates select="endDate"/>
254 284
          </td>
255 285
     </tr>
256
    
257

  
258 286
  </xsl:template>
259 287

  
260 288

  
......
267 295
  </xsl:template>
268 296
  
269 297
  <xsl:template name="singleDateType">
270
     <xsl:if test="calendarDate"> 
298
    <table width="100%">
299
     <xsl:if test="calendarDate">
271 300
      <tr>
272
       <td width="{$firstColWidth}" class="{$firstColStyle}">
273
          Calendar Date:</td>
274
       <td width="{$secondColWidth}" class="{$secondColStyle}">
301
       <td width="100%" colspan="2" class="{$secondColStyle}">
275 302
          <xsl:value-of select="calendarDate"/>
276 303
          <xsl:if test="./time and normalize-space(./time)!=''">
277 304
            <xsl:text>&#160; at &#160;</xsl:text><xsl:apply-templates select="time"/>
......
280 307
      </tr>
281 308
     </xsl:if>
282 309
     <xsl:if test="alternativeTimeScale">
283
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
284
            Other Time Scale:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
285
            <xsl:apply-templates select="alternativeTimeScale"/></td></tr>
286
    </xsl:if>
310
         <xsl:apply-templates select="alternativeTimeScale"/>
311
     </xsl:if>
312
    </table>
287 313
  </xsl:template>
288 314

  
289 315
 
290 316
  <xsl:template match="alternativeTimeScale">
291
    <table width="100%">
317
   
292 318
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
293
            timescale:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleName"/></td></tr>
319
            Timescale:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleName"/></td></tr>
294 320
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
295
            time estimate:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeEstimate"/></td></tr>
321
            Time estimate:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeEstimate"/></td></tr>
322
        <xsl:if test="timeScaleAgeUncertainty and normalize-space(timeScaleAgeUncertainty)!=''">
296 323
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
297
            time uncertainty:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeUncertainty"/></td></tr>
324
            Time uncertainty:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeUncertainty"/></td></tr>
325
        </xsl:if>
326
        <xsl:if test="timeScaleAgeExplanation and normalize-space(timeScaleAgeExplanation)!=''">
298 327
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
299
            time explanation:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeExplanation"/></td></tr>
328
            Time explanation:</td><td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeExplanation"/></td></tr>
329
        </xsl:if>
330
        <xsl:if test="timeScaleCitation and normalize-space(timeScaleCitation)!=''">
300 331
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
301
            citation:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
332
            Citation:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
302 333
            <xsl:apply-templates select="timeScaleCitation"/>
303 334
        </td></tr>
304
    </table>
335
        </xsl:if>
336
  
305 337
  </xsl:template>
306 338

  
307 339
  <xsl:template match="timeScaleCitation">
......
340 372
          <xsl:apply-templates select="."/>
341 373
      </xsl:for-each>
342 374
  </xsl:template>
343

  
344
 
345
  <xsl:template match="generalTaxonomicCoverage">
346
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
347
        <xsl:text>General:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
348
        <xsl:value-of select="."/></td></tr>
349
  </xsl:template>
350

  
351
 
352
  <xsl:template match="taxonomicSystem">
353
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
375
  
376
  
377
 <xsl:template match="taxonomicSystem">
378
     <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
354 379
        <xsl:text>Taxonomic System:</xsl:text></td>
355
        <td width="{$secondColWidth}" class="{$firstColStyle}">&#160;</td></tr>
356
      <xsl:apply-templates select="./*"/>
357
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
358
        <xsl:text>&#160;</xsl:text></td><td width="{$secondColWidth}" class="{$firstColStyle}">&#160;</td></tr>
380
        <td width="{$secondColWidth}" class="{$secondColStyle}">
381
            <table width="100%" class="tabledefault">
382
              <xsl:apply-templates select="./*"/>
383
            </table>
384
        </td>
385
     </tr>
359 386
  </xsl:template>
387
  
360 388

  
361 389
  <xsl:template match="classificationSystem">
362
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">Classification System:</td>
390
     <xsl:for-each select="classificationSystemCitation">
391
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">Classification Citation:</td>
392
          <td width="{$secondColWidth}" class="{$secondColStyle}">
393
           <xsl:call-template name="citation">
394
             <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
395
             <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
396
           </xsl:call-template>
397
         </td>
398
        </tr>
399
     </xsl:for-each>
400
     <xsl:if test="classificationSystemModifications and normalize-space(classificationSystemModifications)!=''">
401
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">Modification:</td>
363 402
        <td width="{$secondColWidth}" class="{$secondColStyle}">
364
        <table width="100%">
365
        <xsl:apply-templates select="classificationSystemCitaion"/>
366
        <xsl:apply-templates select="./classmod"/>
367
        </table>
368
        </td></tr>
403
          <xsl:apply-templates select="classificationSystemModifications"/>
404
        </td>
405
      </tr>
406
     </xsl:if>
369 407
  </xsl:template>
370 408

  
371
  <xsl:template match="classificationSystemCitation">
372
     <xsl:call-template name="citation">
373
        <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
374
        <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
375
     </xsl:call-template>
376
  </xsl:template>
377

  
378
  <xsl:template match="classificationSystemModifications">
379
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
380
        <xsl:text>Modifications:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
381
        <xsl:value-of select="."/></td></tr>
382
  </xsl:template>
383

  
409
  
384 410
  <xsl:template match="identificationReference">
385 411
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">ID Reference:</td>
386 412
        <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;
......
395 421

  
396 422
  <xsl:template match="identifierName">
397 423
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">ID Name:</td>
398
        <td width="{$secondColWidth}" class="{$secondColStyle}">
399
          &#160;
400
        </td></tr>
401
       <tr><td colspan="2">
402
           <xsl:call-template name="party">
403
             <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
404
           </xsl:call-template>
405
       </td></tr>
424
          <td width="{$secondColWidth}" class="{$secondColStyle}">
425
             <xsl:call-template name="party">
426
               <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
427
             </xsl:call-template>
428
          </td>
429
      </tr>
406 430
  </xsl:template>
407 431

  
408 432
  <xsl:template match="taxonomicProcedures">
409 433
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
410 434
        <xsl:text>Procedures:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
411
        <xsl:apply-templates select="."/></td></tr>
435
        <xsl:value-of select="."/></td></tr>
412 436
  </xsl:template>
413 437

  
414 438
  <xsl:template match="taxonomicCompleteness">
415 439
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
416 440
        <xsl:text>Completeness:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
417
        <xsl:apply-templates select="."/></td></tr>
441
        <xsl:value-of select="."/></td></tr>
418 442
  </xsl:template>
419 443

  
420 444
  <xsl:template match="vouchers">
......
434 458
  </xsl:template>
435 459

  
436 460
  <xsl:template match="repository">
437
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">Repository:</td>
461
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">Repository:</td>
438 462
        <td width="{$secondColWidth}" class="{$secondColStyle}">
439
          &#160;
440
        </td></tr>
441
        <xsl:for-each select="originator">
442
          <tr><td colspan="2">
443
            <xsl:call-template name="party">
444
             <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
445
            </xsl:call-template>
446
          </td></tr>
447
        </xsl:for-each>
463
            <xsl:for-each select="originator">
464
               <xsl:call-template name="party">
465
                 <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
466
               </xsl:call-template>
467
            </xsl:for-each>
468
        </td>
469
    </tr>
448 470
  </xsl:template>
449 471

  
472

  
473
  <xsl:template match="generalTaxonomicCoverage">
474
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
475
             <xsl:text>General Coverage:</xsl:text></td>
476
           <td width="{$secondColWidth}" class="{$secondColStyle}">
477
             <xsl:value-of select="."/>
478
          </td>
479
      </tr>
480
  </xsl:template>
481
 
482

  
450 483
  <xsl:template match="taxonomicClassification">
451 484
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
452 485
        <xsl:text>Classification:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
453 486
        <table width="100%">
454
        <xsl:apply-templates select="./*"/>
487
        <xsl:apply-templates select="./*" mode="nest"/>
455 488
        </table>
456 489
        </td></tr>
457 490
  </xsl:template>
458 491

  
459
  <xsl:template match="taxonRankName">
460
      <tr><td width="{$secondColIndent}" class="{$secondColStyle}">
492
  <xsl:template match="taxonRankName" mode="nest" >
493
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
461 494
        <xsl:text>Rank Name:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
462 495
        <xsl:value-of select="."/></td></tr>
463 496
  </xsl:template>
464 497

  
465
  <xsl:template match="taxonRankValue">
466
      <tr><td width="{$secondColIndent}" class="{$secondColStyle}">
498
  <xsl:template match="taxonRankValue" mode="nest">
499
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
467 500
        <xsl:text>Rank Value:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
468 501
        <xsl:value-of select="."/></td></tr>
469 502
  </xsl:template>
470 503

  
471
  <xsl:template match="commonName">
472
      <tr><td width="{$secondColIndent}" class="{$secondColStyle}">
473
        <xsl:text>Common Name:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
474
        <xsl:for-each select=".">
504
  <xsl:template match="commonName" mode="nest">
505
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
506
            <xsl:text>Common Name:</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
475 507
            <xsl:value-of select="."/>
476
        </xsl:for-each></td></tr>
508
          </td>
509
      </tr>
477 510
  </xsl:template>
478 511
  
512
  <xsl:template match="taxonomicClassification" mode="nest">
513
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
514
          <xsl:text>Classification:</xsl:text>
515
        </td>
516
        <td width="{$secondColWidth}" class="{$secondColStyle}">
517
           <table class="tabledefault" width="100%">
518
             <xsl:apply-templates select="./*" mode="nest"/>
519
           </table>
520
        </td>
521
     </tr>
522
  </xsl:template>
479 523
  
480 524
</xsl:stylesheet>

Also available in: Unified diff