Project

General

Profile

Revision 1689

Added by Jing Tao over 17 years ago

Revise some templates.

View differences:

eml-literature-2.0.0.xsl
62 62
  <xsl:template name="citationCommon">
63 63
    <xsl:param name="citationfirstColStyle"/>
64 64
    <xsl:param name="citationsubHeaderStyle"/>
65
    <xsl:call-template name="resource">
66
      <xsl:with-param name="resfirstColStyle" select="$citationfirstColStyle"/>
67
      <xsl:with-param name="ressubHeaderStyle" select="$citationsubHeaderStyle"/>
68
      <xsl:with-param name="creator">Author(s):</xsl:with-param>
69
    </xsl:call-template>
65
    <tr><td colspan="2">
66
        <xsl:call-template name="resource">
67
          <xsl:with-param name="resfirstColStyle" select="$citationfirstColStyle"/>
68
          <xsl:with-param name="ressubHeaderStyle" select="$citationsubHeaderStyle"/>
69
          <xsl:with-param name="creator">Author(s):</xsl:with-param>
70
        </xsl:call-template>
71
       </td>
72
    </tr>
70 73
    
71 74
    <xsl:for-each select="article">
72 75
       <xsl:call-template name="citationarticle">
......
174 177
  <xsl:template name="citationarticle">
175 178
     <xsl:param name="citationfirstColStyle"/>
176 179
     <xsl:param name="citationsubHeaderStyle"/>
177
     <xsl:for-each select="article">
180
   
178 181
        <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>ARTICLE:</xsl:text></td></tr>
179 182
           <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
180 183
            Journal:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
......
213 216
            ISSN:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
214 217
            <xsl:value-of select="ISSN"/></td></tr>
215 218
        </xsl:if>
216
    </xsl:for-each>
219
  
217 220
  </xsl:template>
218 221

  
219 222
  
......
222 225
    <xsl:param name="citationfirstColStyle"/>
223 226
    <xsl:param name="citationsubHeaderStyle"/>
224 227
    <xsl:param name="notshow" />
225
    <xsl:for-each select="book">
226
        <xsl:if test="$notshow =''">
228
       <xsl:if test="$notshow =''">
227 229
          <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>BOOK:</xsl:text></td></tr>
228 230
        </xsl:if>
229 231
        <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
......
284 286
            ISBN:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
285 287
            <xsl:value-of select="ISBN"/></td></tr>
286 288
        </xsl:if>
287
     </xsl:for-each>
289
    
288 290
   </xsl:template>
289 291

  
290 292
   
......
292 294
   <xsl:template name="citationchapter">
293 295
      <xsl:param name="citationfirstColStyle"/>
294 296
      <xsl:param name="citationsubHeaderStyle"/>
295
      <xsl:for-each select="chapter">
296
        <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>CHAPTER:</xsl:text></td></tr>
297
       <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>CHAPTER:</xsl:text></td></tr>
297 298
        <xsl:if test="chapterNumber and normalize-space(chapterNumber)!=''">
298 299
           <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
299 300
            Chapter Number:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
......
326 327
          <xsl:with-param name="citationfirstColStyle" select="$citationfirstColStyle"/>
327 328
          <xsl:with-param name="citationsubHeaderStyle" select="$citationsubHeaderStyle"/>
328 329
        </xsl:call-template>
329
      </xsl:for-each>
330 330
   </xsl:template>
331 331

  
332 332
   
......
334 334
   <xsl:template name="citationeditedBook">
335 335
      <xsl:param name="citationfirstColStyle"/>
336 336
      <xsl:param name="citationsubHeaderStyle"/>
337
      <xsl:for-each select="editedBook">
338
        <xsl:call-template name="citationbook">
337
       <xsl:call-template name="citationbook">
339 338
          <xsl:with-param name="citationfirstColStyle" select="$citationfirstColStyle"/>
340 339
          <xsl:with-param name="citationsubHeaderStyle" select="$citationsubHeaderStyle"/>
341 340
        </xsl:call-template>
342
      </xsl:for-each>
343 341
   </xsl:template>
344 342
   
345 343
   
......
347 345
   <xsl:template name="citationmanuscript">
348 346
     <xsl:param name="citationfirstColStyle"/>
349 347
     <xsl:param name="citationsubHeaderStyle"/>
350
     <xsl:for-each select="manuscript">
351 348
       <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>MANUSCRIPT:</xsl:text></td></tr>
352 349
       <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
353 350
            Institution:
......
370 367
            Total Pages:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
371 368
            <xsl:value-of select="totalPages"/></td></tr>
372 369
       </xsl:if>
373
     </xsl:for-each>
374 370
   </xsl:template>
375 371
   
376 372
   
......
379 375
     <xsl:param name="citationfirstColStyle"/>
380 376
     <xsl:param name="citationsubHeaderStyle"/>
381 377
     <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>REPORT:</xsl:text></td></tr>
382
     <xsl:for-each select="report">
383
     
384 378
       <xsl:if test="reportNumber and normalize-space(reportNumber)!=''">
385 379
          <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
386 380
            Report Number:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
......
412 406
            Total Pages:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
413 407
            <xsl:value-of select="totalPages"/></td></tr>
414 408
       </xsl:if>
415
       
416
     </xsl:for-each>
417 409
   </xsl:template>
418 410

  
419 411
   
......
421 413
     <xsl:param name="citationfirstColStyle"/>
422 414
     <xsl:param name="citationsubHeaderStyle"/>
423 415
     <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>THESIS:</xsl:text></td></tr>
424
     <xsl:for-each select="thesis">
425 416
        <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
426 417
        Degree:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
427 418
        <xsl:value-of select="degree"/></td></tr>
......
443 434
         Total Pages:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
444 435
         <xsl:value-of select="totalPages"/></td></tr>
445 436
       </xsl:if>
446
     </xsl:for-each>
447 437
   </xsl:template>
448 438
   
449 439
   <xsl:template name="citationconferenceProceedings">
450 440
     <xsl:param name="citationfirstColStyle"/>
451 441
     <xsl:param name="citationsubHeaderStyle"/>
452 442
     <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>CONFERENCE PROCEEDINGS:</xsl:text></td></tr>
453
     <xsl:for-each select="conferenceProceedings">
454
       <xsl:if test="conferenceName and normalize-space(conferenceName)!=''">
443
      <xsl:if test="conferenceName and normalize-space(conferenceName)!=''">
455 444
         <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
456 445
         Conference Name:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
457 446
         <xsl:value-of select="conferenceName"/></td></tr>
......
482 471
          <xsl:with-param name="citationfirstColStyle" select="$citationfirstColStyle"/>
483 472
          <xsl:with-param name="citationsubHeaderStyle" select="$citationsubHeaderStyle"/>
484 473
       </xsl:call-template>
485
     </xsl:for-each>
486
   </xsl:template>
474
  </xsl:template>
487 475

  
488 476
  <xsl:template name="citationpersonalCommunication">
489 477
    <xsl:param name="citationfirstColStyle"/>
490 478
    <xsl:param name="citationsubHeaderStyle"/>
491 479
    <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>PERSONAL COMMUNICATION:</xsl:text></td></tr>
492
     <xsl:for-each select="personalCommunication">
493
      <xsl:if test="publisher and normalize-space(publisher)!=''">
480
     <xsl:if test="publisher and normalize-space(publisher)!=''">
494 481
          <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
495 482
            Publisher:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
496 483
            &#160;</td></tr>
......
528 515
           </td></tr>
529 516
          </xsl:for-each>
530 517
      </xsl:if>
531
    </xsl:for-each>
532 518
  </xsl:template>
533 519
  
534 520
  
......
536 522
    <xsl:param name="citationfirstColStyle"/>
537 523
    <xsl:param name="citationsubHeaderStyle"/>
538 524
    <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>MAP:</xsl:text></td></tr>
539
     <xsl:for-each select="map">
540 525
      <xsl:if test="publisher and normalize-space(publisher)!=''">
541 526
          <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
542 527
            Publisher:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
......
568 553
            Scale:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
569 554
            <xsl:value-of select="scale"/></td></tr>
570 555
       </xsl:if>
571
       
572
     </xsl:for-each>
573
  </xsl:template>
556
 </xsl:template>
574 557
  
575 558
  
576 559
  <xsl:template name="citationgeneric">
577 560
    <xsl:param name="citationfirstColStyle"/>
578 561
    <xsl:param name="citationsubHeaderStyle"/>
579 562
    <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>Generic Citation:</xsl:text></td></tr>
580
    <xsl:for-each select="generic">
581
      <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
563
    <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
582 564
            Publisher:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
583 565
            &#160;
584 566
      </td></tr>
......
667 649
            ISSN:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
668 650
            <xsl:value-of select="ISSN"/></td></tr>
669 651
      </xsl:if>
670
    </xsl:for-each>
671 652
  </xsl:template>
672 653
  
673 654
  <xsl:template name="citationaudioVisual">
674 655
    <xsl:param name="citationfirstColStyle"/>
675 656
    <xsl:param name="citationsubHeaderStyle"/>
676 657
    <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>Media Citation:</xsl:text></td></tr>
677
    <xsl:for-each select="audioVisual">
678
       <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
658
      <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
679 659
            Publisher:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
680 660
            &#160;
681 661
      </td></tr>
......
718 698
            ISBN:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
719 699
            <xsl:value-of select="ISBN"/></td></tr>
720 700
      </xsl:if>
721
    </xsl:for-each>
722 701
  </xsl:template>
723 702
  
724 703
  <xsl:template name="citationpresentation">
725 704
    <xsl:param name="citationfirstColStyle"/>
726 705
    <xsl:param name="citationsubHeaderStyle"/>
727 706
    <tr class="{$citationsubHeaderStyle}"><td colspan="2"><xsl:text>Presentation:</xsl:text></td></tr>
728
    <xsl:for-each select="presentation">
729
       <xsl:if test="conferenceName and normalize-space(conferenceName)!=''">
707
      <xsl:if test="conferenceName and normalize-space(conferenceName)!=''">
730 708
         <tr><td width="{$firstColWidth}" class="{$citationfirstColStyle}">
731 709
         Conference Name:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
732 710
         <xsl:value-of select="conferenceName"/></td></tr>
......
749 727
           </xsl:for-each>
750 728
          </td>
751 729
        </tr>
752
     </xsl:for-each>
753 730
  </xsl:template>
754 731
  
755 732

  

Also available in: Unified diff