Project

General

Profile

« Previous | Next » 

Revision 1695

Added by Jing Tao about 21 years ago

Revise templates.

View differences:

eml-2.0.0.xsl
215 215
   </xsl:template>
216 216
   
217 217
   <!--************ Entity part *****************-->
218
    <xsl:template name="entitypart">
218
   <xsl:template name="entitypart">
219
       <xsl:choose>
220
               <xsl:when test="references!=''">
221
                  <xsl:variable name="ref_id" select="references"/>
222
                  <xsl:variable name="references" select="$ids[@id=$ref_id]" />
223
                  <xsl:for-each select="$references">
224
                     <xsl:call-template name="entitypartcommon"/>
225
                  </xsl:for-each>
226
               </xsl:when>
227
               <xsl:otherwise>
228
                  <xsl:call-template name="entitypartcommon"/>
229
              </xsl:otherwise>
230
         </xsl:choose>
231
    </xsl:template>
232
   
233
   
234
    <xsl:template name="entitypartcommon">
219 235
      <tr><td colspan="2" width="100%" >
220 236
         <right>
221 237
            <h3>Entity Description</h3>
......
225 241
                <xsl:with-param name="packageID" select="../@packageId"/>
226 242
                <xsl:with-param name="system" select="../@system"/>
227 243
      </xsl:call-template>
228
     
229 244
      <tr>
230 245
           <td width="100%" colspan="2">
231
             <!-- find the subtree to process -->
232
             <xsl:if test="$entitytype='dataTable'">
233
               <xsl:for-each select="dataTable">
234
                  <xsl:if test="position()=$entityindex">
235
                     <xsl:call-template name="dataTable">
236
                         <xsl:with-param name="datatablefirstColStyle" select="$firstColStyle"/>
237
                         <xsl:with-param name="datatablesubHeaderStyle" select="$subHeaderStyle"/>  
238
                         <xsl:with-param name="docid" select="$docid"/>
239
                         <xsl:with-param name="entitytype" select="$entitytype"/>
240
                         <xsl:with-param name="entityindex" select="$entityindex"/>
241
                     </xsl:call-template>
242
                  </xsl:if>
243
              </xsl:for-each>
244
            </xsl:if>
245
            <xsl:if test="$entitytype='spatialRaster'">
246
               <xsl:for-each select="spatialRaster">
247
                  <xsl:if test="position()=$entityindex">
248
                     <xsl:call-template name="spatialRaster">
249
                         <xsl:with-param name="spatialrasterfirstColStyle" select="$firstColStyle"/>
250
                         <xsl:with-param name="spatialrastersubHeaderStyle" select="$subHeaderStyle"/>  
251
                         <xsl:with-param name="docid" select="$docid"/>
252
                         <xsl:with-param name="entitytype" select="$entitytype"/>
253
                         <xsl:with-param name="entityindex" select="$entityindex"/>
254
                     </xsl:call-template>
255
                  </xsl:if>
256
              </xsl:for-each>
257
            </xsl:if>
258
            <xsl:if test="$entitytype='spatialVector'">
259
               <xsl:for-each select="spatialVector">
260
                  <xsl:if test="position()=$entityindex">
261
                     <xsl:call-template name="spatialVector">
262
                         <xsl:with-param name="spatialvectorfirstColStyle" select="$firstColStyle"/>
263
                         <xsl:with-param name="spatialvectorsubHeaderStyle" select="$subHeaderStyle"/>  
264
                         <xsl:with-param name="docid" select="$docid"/>
265
                         <xsl:with-param name="entitytype" select="$entitytype"/>
266
                         <xsl:with-param name="entityindex" select="$entityindex"/>
267
                     </xsl:call-template>
268
                  </xsl:if>
269
              </xsl:for-each>
270
            </xsl:if>
271
            <xsl:if test="$entitytype='storedProcedure'">
272
               <xsl:for-each select="storedProcedure">
273
                  <xsl:if test="position()=$entityindex">
274
                     <xsl:call-template name="storedProcedure">
275
                         <xsl:with-param name="storedprocedurefirstColStyle" select="$firstColStyle"/>
276
                         <xsl:with-param name="storedproceduresubHeaderStyle" select="$subHeaderStyle"/>  
277
                         <xsl:with-param name="docid" select="$docid"/>
278
                         <xsl:with-param name="entitytype" select="$entitytype"/>
279
                         <xsl:with-param name="entityindex" select="$entityindex"/>
280
                     </xsl:call-template>
281
                  </xsl:if>
282
              </xsl:for-each>
283
            </xsl:if>
284
            <xsl:if test="$entitytype='view'">
285
               <xsl:for-each select="view">
286
                  <xsl:if test="position()=$entityindex">
287
                     <xsl:call-template name="view">
288
                         <xsl:with-param name="viewfirstColStyle" select="$firstColStyle"/>
289
                         <xsl:with-param name="viewsubHeaderStyle" select="$subHeaderStyle"/>  
290
                         <xsl:with-param name="docid" select="$docid"/>
291
                         <xsl:with-param name="entitytype" select="$entitytype"/>
292
                         <xsl:with-param name="entityindex" select="$entityindex"/>
293
                     </xsl:call-template>
294
                  </xsl:if>
295
              </xsl:for-each>
296
            </xsl:if>
297
            <xsl:if test="$entitytype='otherEntity'">
298
               <xsl:for-each select="view">
299
                  <xsl:if test="position()=$entityindex">
300
                     <xsl:call-template name="otherEntity">
301
                         <xsl:with-param name="otherentityfirstColStyle" select="$firstColStyle"/>
302
                         <xsl:with-param name="otherentitysubHeaderStyle" select="$subHeaderStyle"/>  
303
                         <xsl:with-param name="docid" select="$docid"/>
304
                         <xsl:with-param name="entitytype" select="$entitytype"/>
305
                         <xsl:with-param name="entityindex" select="$entityindex"/>
306
                     </xsl:call-template>
307
                  </xsl:if>
308
              </xsl:for-each>
309
            </xsl:if>
310
          </td>
246
              <!-- find the subtree to process -->
247
             <xsl:call-template name="chooseentity"/>
248
           </td>
311 249
      </tr>  
312 250
   </xsl:template>
313 251
   
......
347 285
      </td></tr>
348 286
      <tr>
349 287
           <td width="100%">
350
              <!-- find the subtree to process -->
351
            <xsl:if test="$entitytype='dataTable'">
288
             <!-- find the subtree to process -->
289
             <xsl:call-template name="chooseentity"/>
290
          </td>
291
      </tr>  
292
   </xsl:template>
293
   
294
   
295
   <!--************************Attribute Method************************-->
296
   <xsl:template name="datasetattributemethod">
297
      <tr><td>
298
         <right>
299
            <h3>Attributes Method</h3>
300
         </right>
301
      </td></tr>
302
      <tr>
303
           <td width="100%">
304
             <!-- find the subtree to process -->
305
             <xsl:call-template name="chooseentity"/>
306
          </td>
307
      </tr>  
308
   </xsl:template>
309
   
310
   
311
   <!--************************Attribute Coverage************************-->
312
   <xsl:template name="datasetattributecoverage">
313
     <tr><td>
314
         <right>
315
            <h3>Attributes Coverage</h3>
316
         </right>
317
      </td></tr>
318
      <tr>
319
           <td width="100%">
320
             <!-- find the subtree to process -->
321
             <xsl:call-template name="chooseentity"/>
322
          </td>
323
      </tr>  
324
   </xsl:template>
325
   
326
   
327
   <xsl:template name="chooseentity">
328
           <xsl:if test="$entitytype='dataTable'">
352 329
              <xsl:for-each select="dataTable">
353 330
                  <xsl:if test="position()=$entityindex">
354
                      <xsl:for-each select="attributeList">
355
                         <xsl:for-each select="attribute">
356
                            <xsl:if test="position()=$attributeindex">
357
                              <xsl:for-each select="measurementScale/*/*">
358
                                  <xsl:call-template name="nonNumericDomain">
359
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
360
                                  </xsl:call-template>
331
                         <xsl:choose>
332
                           <xsl:when test="references!=''">
333
                              <xsl:variable name="ref_id" select="references"/>
334
                              <xsl:variable name="references" select="$ids[@id=$ref_id]" />
335
                                <xsl:for-each select="$references">
336
                                    <xsl:choose>
337
                                       <xsl:when test="$displaymodule='entity'">
338
                                          <xsl:call-template name="dataTable">
339
                                              <xsl:with-param name="datatablefirstColStyle" select="$firstColStyle"/>
340
                                              <xsl:with-param name="datatablesubHeaderStyle" select="$subHeaderStyle"/>  
341
                                              <xsl:with-param name="docid" select="$docid"/>
342
                                              <xsl:with-param name="entitytype" select="$entitytype"/>
343
                                              <xsl:with-param name="entityindex" select="$entityindex"/>
344
                                          </xsl:call-template>
345
                                       </xsl:when>
346
                                       <xsl:otherwise>
347
                                          <xsl:call-template name="chooseattributelist"/>
348
                                       </xsl:otherwise>
349
                                    </xsl:choose>
361 350
                                </xsl:for-each>
362
                              </xsl:if>
363
                          </xsl:for-each>
364
                      </xsl:for-each>
351
                           </xsl:when>
352
                           <xsl:otherwise>
353
                             <xsl:choose>
354
                                       <xsl:when test="$displaymodule='entity'">
355
                                          <xsl:call-template name="dataTable">
356
                                              <xsl:with-param name="datatablefirstColStyle" select="$firstColStyle"/>
357
                                              <xsl:with-param name="datatablesubHeaderStyle" select="$subHeaderStyle"/>  
358
                                              <xsl:with-param name="docid" select="$docid"/>
359
                                              <xsl:with-param name="entitytype" select="$entitytype"/>
360
                                              <xsl:with-param name="entityindex" select="$entityindex"/>
361
                                          </xsl:call-template>
362
                                       </xsl:when>
363
                                       <xsl:otherwise>
364
                                          <xsl:call-template name="chooseattributelist"/>
365
                                       </xsl:otherwise>
366
                             </xsl:choose>   
367
                         </xsl:otherwise>
368
                      </xsl:choose>
365 369
                  </xsl:if>
366 370
              </xsl:for-each>
367 371
            </xsl:if>
368
             <xsl:if test="$entitytype='spatialRaster'">
372
            <xsl:if test="$entitytype='spatialRaster'">
369 373
              <xsl:for-each select="spatialRaster">
370 374
                  <xsl:if test="position()=$entityindex">
371
                      <xsl:for-each select="attributeList">
372
                         <xsl:for-each select="attribute">
373
                            <xsl:if test="position()=$attributeindex">
374
                              <xsl:for-each select="measurementScale/*/*">
375
                                  <xsl:call-template name="nonNumericDomain">
376
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
377
                                  </xsl:call-template>
375
                         <xsl:choose>
376
                           <xsl:when test="references!=''">
377
                              <xsl:variable name="ref_id" select="references"/>
378
                              <xsl:variable name="references" select="$ids[@id=$ref_id]" />
379
                                <xsl:for-each select="$references">
380
                                    <xsl:choose>
381
                                       <xsl:when test="$displaymodule='entity'">
382
                                          <xsl:call-template name="spatialRaster">
383
                                              <xsl:with-param name="spatialrasterfirstColStyle" select="$firstColStyle"/>
384
                                              <xsl:with-param name="spatialrastersubHeaderStyle" select="$subHeaderStyle"/>  
385
                                              <xsl:with-param name="docid" select="$docid"/>
386
                                              <xsl:with-param name="entitytype" select="$entitytype"/>
387
                                              <xsl:with-param name="entityindex" select="$entityindex"/>
388
                                          </xsl:call-template>
389
                                       </xsl:when>
390
                                       <xsl:otherwise>
391
                                          <xsl:call-template name="chooseattributelist"/>
392
                                       </xsl:otherwise>
393
                                    </xsl:choose>
378 394
                                </xsl:for-each>
379
                              </xsl:if>
380
                          </xsl:for-each>
381
                      </xsl:for-each>
395
                           </xsl:when>
396
                           <xsl:otherwise>
397
                             <xsl:choose>
398
                                       <xsl:when test="$displaymodule='entity'">
399
                                          <xsl:call-template name="spatialRaster">
400
                                              <xsl:with-param name="spatialrasterfirstColStyle" select="$firstColStyle"/>
401
                                              <xsl:with-param name="spatialrastersubHeaderStyle" select="$subHeaderStyle"/>  
402
                                              <xsl:with-param name="docid" select="$docid"/>
403
                                              <xsl:with-param name="entitytype" select="$entitytype"/>
404
                                              <xsl:with-param name="entityindex" select="$entityindex"/>
405
                                          </xsl:call-template>
406
                                       </xsl:when>
407
                                       <xsl:otherwise>
408
                                          <xsl:call-template name="chooseattributelist"/>
409
                                       </xsl:otherwise>
410
                             </xsl:choose>   
411
                         </xsl:otherwise>
412
                      </xsl:choose>
382 413
                  </xsl:if>
383 414
              </xsl:for-each>
384 415
            </xsl:if>
385
             <xsl:if test="$entitytype='spatialVector'">
416
            <xsl:if test="$entitytype='spatialVector'">
386 417
              <xsl:for-each select="spatialVector">
387 418
                  <xsl:if test="position()=$entityindex">
388
                      <xsl:for-each select="attributeList">
389
                         <xsl:for-each select="attribute">
390
                            <xsl:if test="position()=$attributeindex">
391
                              <xsl:for-each select="measurementScale/*/*">
392
                                  <xsl:call-template name="nonNumericDomain">
393
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
394
                                  </xsl:call-template>
419
                         <xsl:choose>
420
                           <xsl:when test="references!=''">
421
                              <xsl:variable name="ref_id" select="references"/>
422
                              <xsl:variable name="references" select="$ids[@id=$ref_id]" />
423
                                <xsl:for-each select="$references">
424
                                    <xsl:choose>
425
                                       <xsl:when test="$displaymodule='entity'">
426
                                          <xsl:call-template name="spatialVector">
427
                                             <xsl:with-param name="spatialvectorfirstColStyle" select="$firstColStyle"/>
428
                                              <xsl:with-param name="spatialvectorsubHeaderStyle" select="$subHeaderStyle"/>  
429
                                              <xsl:with-param name="docid" select="$docid"/>
430
                                              <xsl:with-param name="entitytype" select="$entitytype"/>
431
                                              <xsl:with-param name="entityindex" select="$entityindex"/>
432
                                          </xsl:call-template>
433
                                       </xsl:when>
434
                                       <xsl:otherwise>
435
                                          <xsl:call-template name="chooseattributelist"/>
436
                                       </xsl:otherwise>
437
                                    </xsl:choose>
395 438
                                </xsl:for-each>
396
                              </xsl:if>
397
                          </xsl:for-each>
398
                      </xsl:for-each>
439
                           </xsl:when>
440
                           <xsl:otherwise>
441
                             <xsl:choose>
442
                                       <xsl:when test="$displaymodule='entity'">
443
                                          <xsl:call-template name="spatialVector">
444
                                              <xsl:with-param name="spatialvectorfirstColStyle" select="$firstColStyle"/>
445
                                              <xsl:with-param name="spatialvectorsubHeaderStyle" select="$subHeaderStyle"/>  
446
                                              <xsl:with-param name="docid" select="$docid"/>
447
                                              <xsl:with-param name="entitytype" select="$entitytype"/>
448
                                              <xsl:with-param name="entityindex" select="$entityindex"/>
449
                                          </xsl:call-template>
450
                                       </xsl:when>
451
                                       <xsl:otherwise>
452
                                          <xsl:call-template name="chooseattributelist"/>
453
                                       </xsl:otherwise>
454
                             </xsl:choose>   
455
                         </xsl:otherwise>
456
                      </xsl:choose>
399 457
                  </xsl:if>
400 458
              </xsl:for-each>
401 459
            </xsl:if>
402
             <xsl:if test="$entitytype='storedProcedure'">
460
            <xsl:if test="$entitytype='storedProcedure'">
403 461
              <xsl:for-each select="storedProcedure">
404 462
                  <xsl:if test="position()=$entityindex">
405
                      <xsl:for-each select="attributeList">
406
                         <xsl:for-each select="attribute">
407
                            <xsl:if test="position()=$attributeindex">
408
                              <xsl:for-each select="measurementScale/*/*">
409
                                  <xsl:call-template name="nonNumericDomain">
410
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
411
                                  </xsl:call-template>
463
                         <xsl:choose>
464
                           <xsl:when test="references!=''">
465
                              <xsl:variable name="ref_id" select="references"/>
466
                              <xsl:variable name="references" select="$ids[@id=$ref_id]" />
467
                                <xsl:for-each select="$references">
468
                                    <xsl:choose>
469
                                       <xsl:when test="$displaymodule='entity'">
470
                                          <xsl:call-template name="storedProcedure">
471
                                             <xsl:with-param name="storedprocedurefirstColStyle" select="$firstColStyle"/>
472
                                             <xsl:with-param name="storedproceduresubHeaderStyle" select="$subHeaderStyle"/>  
473
                                             <xsl:with-param name="docid" select="$docid"/>
474
                                             <xsl:with-param name="entitytype" select="$entitytype"/>
475
                                             <xsl:with-param name="entityindex" select="$entityindex"/>
476
                                          </xsl:call-template>
477
                                       </xsl:when>
478
                                       <xsl:otherwise>
479
                                          <xsl:call-template name="chooseattributelist"/>
480
                                       </xsl:otherwise>
481
                                    </xsl:choose>
412 482
                                </xsl:for-each>
413
                              </xsl:if>
414
                          </xsl:for-each>
415
                      </xsl:for-each>
483
                           </xsl:when>
484
                           <xsl:otherwise>
485
                             <xsl:choose>
486
                                       <xsl:when test="$displaymodule='entity'">
487
                                          <xsl:call-template name="storedProcedure">
488
                                             <xsl:with-param name="storedprocedurefirstColStyle" select="$firstColStyle"/>
489
                                             <xsl:with-param name="storedproceduresubHeaderStyle" select="$subHeaderStyle"/>  
490
                                             <xsl:with-param name="docid" select="$docid"/>
491
                                             <xsl:with-param name="entitytype" select="$entitytype"/>
492
                                             <xsl:with-param name="entityindex" select="$entityindex"/>
493
                                          </xsl:call-template>
494
                                       </xsl:when>
495
                                       <xsl:otherwise>
496
                                          <xsl:call-template name="chooseattributelist"/>
497
                                       </xsl:otherwise>
498
                             </xsl:choose>   
499
                         </xsl:otherwise>
500
                      </xsl:choose>
416 501
                  </xsl:if>
417 502
              </xsl:for-each>
418 503
            </xsl:if>
419
             <xsl:if test="$entitytype='view'">
504
            <xsl:if test="$entitytype='view'">
420 505
              <xsl:for-each select="view">
421 506
                  <xsl:if test="position()=$entityindex">
422
                      <xsl:for-each select="attributeList">
423
                         <xsl:for-each select="attribute">
424
                            <xsl:if test="position()=$attributeindex">
425
                              <xsl:for-each select="measurementScale/*/*">
426
                                  <xsl:call-template name="nonNumericDomain">
427
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
428
                                  </xsl:call-template>
507
                         <xsl:choose>
508
                           <xsl:when test="references!=''">
509
                              <xsl:variable name="ref_id" select="references"/>
510
                              <xsl:variable name="references" select="$ids[@id=$ref_id]" />
511
                                <xsl:for-each select="$references">
512
                                    <xsl:choose>
513
                                       <xsl:when test="$displaymodule='entity'">
514
                                          <xsl:call-template name="view">
515
                                             <xsl:with-param name="viewfirstColStyle" select="$firstColStyle"/>
516
                                             <xsl:with-param name="viewsubHeaderStyle" select="$subHeaderStyle"/>  
517
                                             <xsl:with-param name="docid" select="$docid"/>
518
                                             <xsl:with-param name="entitytype" select="$entitytype"/>
519
                                             <xsl:with-param name="entityindex" select="$entityindex"/>
520
                                          </xsl:call-template>
521
                                       </xsl:when>
522
                                       <xsl:otherwise>
523
                                          <xsl:call-template name="chooseattributelist"/>
524
                                       </xsl:otherwise>
525
                                    </xsl:choose>
429 526
                                </xsl:for-each>
430
                              </xsl:if>
431
                          </xsl:for-each>
432
                      </xsl:for-each>
527
                           </xsl:when>
528
                           <xsl:otherwise>
529
                             <xsl:choose>
530
                                       <xsl:when test="$displaymodule='entity'">
531
                                          <xsl:call-template name="view">
532
                                             <xsl:with-param name="viewfirstColStyle" select="$firstColStyle"/>
533
                                             <xsl:with-param name="viewsubHeaderStyle" select="$subHeaderStyle"/>  
534
                                             <xsl:with-param name="docid" select="$docid"/>
535
                                             <xsl:with-param name="entitytype" select="$entitytype"/>
536
                                             <xsl:with-param name="entityindex" select="$entityindex"/>
537
                                          </xsl:call-template>
538
                                       </xsl:when>
539
                                       <xsl:otherwise>
540
                                          <xsl:call-template name="chooseattributelist"/>
541
                                       </xsl:otherwise>
542
                             </xsl:choose>   
543
                         </xsl:otherwise>
544
                      </xsl:choose>
433 545
                  </xsl:if>
434 546
              </xsl:for-each>
435 547
            </xsl:if>
436
             <xsl:if test="$entitytype='otherEntity'">
548
            <xsl:if test="$entitytype='otherEntity'">
437 549
              <xsl:for-each select="otherEntity">
438 550
                  <xsl:if test="position()=$entityindex">
439
                      <xsl:for-each select="attributeList">
440
                         <xsl:for-each select="attribute">
441
                            <xsl:if test="position()=$attributeindex">
442
                              <xsl:for-each select="measurementScale/*/*">
443
                                  <xsl:call-template name="nonNumericDomain">
444
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
445
                                  </xsl:call-template>
551
                         <xsl:choose>
552
                           <xsl:when test="references!=''">
553
                              <xsl:variable name="ref_id" select="references"/>
554
                              <xsl:variable name="references" select="$ids[@id=$ref_id]" />
555
                                <xsl:for-each select="$references">
556
                                    <xsl:choose>
557
                                       <xsl:when test="$displaymodule='entity'">
558
                                          <xsl:call-template name="otherEntity">
559
                                             <xsl:with-param name="otherentityfirstColStyle" select="$firstColStyle"/>
560
                                             <xsl:with-param name="otherentitysubHeaderStyle" select="$subHeaderStyle"/>  
561
                                             <xsl:with-param name="docid" select="$docid"/>
562
                                             <xsl:with-param name="entitytype" select="$entitytype"/>
563
                                             <xsl:with-param name="entityindex" select="$entityindex"/>
564
                                          </xsl:call-template>
565
                                       </xsl:when>
566
                                       <xsl:otherwise>
567
                                          <xsl:call-template name="chooseattributelist"/>
568
                                       </xsl:otherwise>
569
                                    </xsl:choose>
446 570
                                </xsl:for-each>
447
                              </xsl:if>
448
                          </xsl:for-each>
449
                      </xsl:for-each>
571
                           </xsl:when>
572
                           <xsl:otherwise>
573
                             <xsl:choose>
574
                                       <xsl:when test="$displaymodule='entity'">
575
                                          <xsl:call-template name="otherEntity">
576
                                             <xsl:with-param name="otherentityfirstColStyle" select="$firstColStyle"/>
577
                                             <xsl:with-param name="otherentitysubHeaderStyle" select="$subHeaderStyle"/>  
578
                                             <xsl:with-param name="docid" select="$docid"/>
579
                                             <xsl:with-param name="entitytype" select="$entitytype"/>
580
                                             <xsl:with-param name="entityindex" select="$entityindex"/>
581
                                          </xsl:call-template>
582
                                       </xsl:when>
583
                                       <xsl:otherwise>
584
                                          <xsl:call-template name="chooseattributelist"/>
585
                                       </xsl:otherwise>
586
                             </xsl:choose>   
587
                         </xsl:otherwise>
588
                      </xsl:choose>
450 589
                  </xsl:if>
451 590
              </xsl:for-each>
452 591
            </xsl:if>
453
            
454
          </td>
455
      </tr>  
456 592
   </xsl:template>
457 593
   
594
   <xsl:template name="chooseattributelist">
595
       <xsl:for-each select="attributeList">
596
          <xsl:choose>
597
               <xsl:when test="references!=''">
598
                  <xsl:variable name="ref_id" select="references"/>
599
                  <xsl:variable name="references" select="$ids[@id=$ref_id]" />
600
                  <xsl:for-each select="$references">
601
                     <xsl:call-template name="chooseattribute"/>
602
                 </xsl:for-each>
603
               </xsl:when>
604
               <xsl:otherwise>
605
                   <xsl:call-template name="chooseattribute"/>
606
              </xsl:otherwise>
607
         </xsl:choose>
608
      </xsl:for-each>
609
   </xsl:template>
458 610
   
459
   <!--************************Attribute Method************************-->
460
   <xsl:template name="datasetattributemethod">
461
       
611
   <xsl:template name="chooseattribute">
612
       <xsl:for-each select="attribute">
613
          <xsl:if test="position()=$attributeindex">
614
            <xsl:if test="$displaymodule='attributedomain'">
615
              <xsl:for-each select="measurementScale/*/*">
616
                <xsl:call-template name="nonNumericDomain">
617
                    <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
618
                 </xsl:call-template>
619
              </xsl:for-each>
620
           </xsl:if>
621
           <xsl:if test="$displaymodule='attributecoverage'">
622
              <xsl:for-each select="coverage">
623
                <xsl:call-template name="coverage">
624
                </xsl:call-template>
625
              </xsl:for-each>
626
           </xsl:if>
627
           <xsl:if test="$displaymodule='attributemethod'">
628
              <xsl:for-each select="method">
629
                <xsl:call-template name="method">
630
                    <xsl:with-param name="methodfirstColStyle" select="$firstColStyle"/>
631
                    <xsl:with-param name="methodsubHeaderStyle" select="$firstColStyle"/>
632
                 </xsl:call-template>
633
              </xsl:for-each>
634
           </xsl:if>
635
         </xsl:if>
636
       </xsl:for-each>
462 637
   </xsl:template>
463 638
   
464 639
   
465
   <!--************************Attribute Coverage************************-->
466
   <xsl:template name="datasetattributecoverage">
467
   </xsl:template>
468 640
   
469 641
   <!--*************************Distribution Inline Data*****************-->
470 642
   <xsl:template name="datasetinlinedata">
......
523 695
   
524 696
   <xsl:template name="choosephysical">
525 697
      <xsl:for-each select="physical">
526
         <xsl:if test="position()=$physicalindex">-->
698
         <xsl:if test="position()=$physicalindex">
527 699
            <xsl:choose>
528 700
               <xsl:when test="references!=''">
529 701
                  <xsl:variable name="ref_id" select="references"/>

Also available in: Unified diff