Project

General

Profile

« Previous | Next » 

Revision 1689

Added by Jing Tao over 21 years ago

Revise some templates.

View differences:

lib/style/eml2/eml-attribute-enumeratedDomain-2.0.0.xsl
101 101
            </td>
102 102
       </tr>
103 103
       <xsl:for-each select="codeDefinition">
104
              <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">&#160;</td>
104
              <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Code Definition</td>
105 105
                   <td width="{$secondColWidth}">
106 106
                      <table width="100%">
107 107
                          <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">
108 108
                               Code
109 109
                              </td>
110
                               <td width="{$secondColWidth}"><td><xsl:value-of select="code"/></td>
111
                               </td>
110
                               <td width="{$secondColWidth}"><xsl:value-of select="code"/></td>
111
                              
112 112
                           </tr>
113 113
                           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">
114 114
                               Definition
115 115
                              </td>
116
                               <td width="{$secondColWidth}"><td><xsl:value-of select="definition"/></td>
117
                               </td>
116
                               <td width="{$secondColWidth}"><xsl:value-of select="definition"/></td>
117
                               
118 118
                           </tr>
119 119
                           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">
120 120
                               Source
121 121
                              </td>
122
                               <td width="{$secondColWidth}"><td><xsl:value-of select="source"/></td>
123
                               </td>
124
                           </tr>
122
                               <td width="{$secondColWidth}"><xsl:value-of select="source"/></td>
123
                          </tr>
125 124
                      </table>
126 125
                   </td>
127 126
               </tr> 
......
132 131
            <td width="{$secondColWidth}">&#160;
133 132
           </td>
134 133
        </tr>
135
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Set Name</td>
134
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Set Name:</td>
136 135
            <td width="{$secondColWidth}"><xsl:value-of select="externalCodeSet/codesetName"/>
137 136
           </td>
138 137
        </tr>
139 138
        <xsl:for-each select="externalCodeSet/citation">
140
           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Citation</td>
141
               <td width="{$secondColWidth}">&#160;</td>
142
           </tr>
143
           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">&#160;</td>
144
                <td width="{$secondColWidth}">
145
                   <xsl:call-template name="citation">
139
           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Citation:</td>
140
               <td width="{$secondColWidth}">
141
                  <xsl:call-template name="citation">
146 142
                      <xsl:with-param name="citationfirstColStyle" select="$nondomainfirstColStyle"/>
147 143
                   </xsl:call-template>
148
                </td>
144
               </td>
149 145
           </tr>
150 146
        </xsl:for-each>
151 147
        <xsl:for-each select="externalCodeSet/codesetURL">
......
162 158
            </td>
163 159
       </tr>
164 160
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Entity Reference</td>
165
            <td width="{$secondColWidth}"><xsl:value-of select="codeDefinition/entityReference"/>
161
            <td width="{$secondColWidth}"><xsl:value-of select="entityCodeList/entityReference"/>
166 162
            </td>
167 163
       </tr>
168 164
       <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Attribute Value Reference</td>
169
            <td width="{$secondColWidth}"><xsl:value-of select="codeDefinition/valueAttributeReference"/>
165
            <td width="{$secondColWidth}"><xsl:value-of select="entityCodeList/valueAttributeReference"/>
170 166
            </td>
171 167
       </tr>
172 168
       <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Attribute Definition Reference</td>
173
            <td width="{$secondColWidth}"><xsl:value-of select="codeDefinition/definitionAttributeReference"/>
169
            <td width="{$secondColWidth}"><xsl:value-of select="entityCodeList/definitionAttributeReference"/>
174 170
            </td>
175 171
       </tr>
176 172
     </xsl:if>  
lib/style/eml2/eml-dataset-2.0.0.xsl
48 48
             <xsl:call-template name="datasetcontact"/>
49 49
             <xsl:call-template name="datasetpublisher"/>
50 50
             <xsl:call-template name="datasetpubplace"/>
51
             <xsl:call-template name="datasetmethod"/>
51 52
             <xsl:call-template name="datasetproject"/>
52 53
             <xsl:call-template name="datasetentity"/>
53 54
          </xsl:for-each>
......
60 61
             <xsl:call-template name="datasetcontact"/>
61 62
             <xsl:call-template name="datasetpublisher"/>
62 63
             <xsl:call-template name="datasetpubplace"/>
64
             <xsl:call-template name="datasetmethod"/>
63 65
             <xsl:call-template name="datasetproject"/>
64 66
             <xsl:call-template name="datasetentity"/>
65 67
       </xsl:otherwise>
......
184 186
              <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
185 187
       </xsl:call-template>
186 188
     </td></tr>
187
     <tr><td width="{$firstColWidth}" class="{$firstColStyle}">&#160;</td>
188
      <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td></tr>
189 189
    </xsl:for-each>
190 190
  </xsl:template>
191 191
  
......
199 199
              <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
200 200
       </xsl:call-template>
201 201
     </td></tr>
202
     <tr><td width="{$firstColWidth}" class="{$firstColStyle}">&#160;</td>
203
      <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td></tr>
204 202
   </xsl:for-each>
205 203
  </xsl:template>
206 204
  
......
214 212
      </tr>
215 213
   </xsl:for-each>
216 214
  </xsl:template>
215
  
216
  <xsl:template name="datasetmethod">
217
     <xsl:for-each select="methods">
218
     <tr><td class="{$subHeaderStyle}" colspan="2">
219
        <xsl:text>Methods Info:</xsl:text>
220
     </td></tr>
221
      <tr>
222
        <td colspan="2" width="100%">
223
        <xsl:call-template name="method">
224
          <xsl:with-param name="methodfirstColStyle" select="$firstColStyle"/>
225
        </xsl:call-template>
226
        </td>
227
      </tr>
228
    </xsl:for-each>
229
  </xsl:template>
217 230
   
218 231
   <xsl:template name="datasetproject">
219 232
    <xsl:for-each select="project">
lib/style/eml2/eml-method-2.0.0.xsl
38 38
  <xsl:param name="methodsubHeaderStyle"/>
39 39
  <table class="tabledefault" width="100%">
40 40
    <xsl:for-each select="methodStep">
41
     <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
42
          <b>Step<xsl:text> </xsl:text><xsl:value-of select="position()"/>:</b>
43
         </td>
44
         <td width="${secondColWidth}" class="{$secondColStyle}">
45
           &#160;
46
         </td>
47
     </tr>
41 48
     <xsl:call-template name="methodStep">
42 49
        <xsl:with-param name="methodfirstColStyle" select="$methodfirstColStyle"/>
43 50
        <xsl:with-param name="methodsubHeaderStyle" select="$methodsubHeaderStyle"/>
......
50 57
     </xsl:call-template>
51 58
    </xsl:for-each>
52 59
    <xsl:for-each select="qualityControl">
60
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
61
          <b>Quality Control Step<xsl:text> </xsl:text><xsl:value-of select="position()"/>:</b>
62
         </td>
63
         <td width="${secondColWidth}" class="{$secondColStyle}">
64
           &#160;
65
         </td>
66
     </tr>
53 67
      <xsl:call-template name="qualityControl">
54 68
         <xsl:with-param name="methodfirstColStyle" select="$methodfirstColStyle"/>
55 69
         <xsl:with-param name="methodsubHeaderStyle" select="$methodsubHeaderStyle"/>
......
85 99
 <xsl:template name="sampling">
86 100
   <xsl:param name="methodfirstColStyle"/>
87 101
   <xsl:param name="methodsubHeaderStyle"/>
88
   <tr class="{$methodsubHeaderStyle}"><td colspan="2"><xsl:text>Sampling Info</xsl:text></td></tr>
89 102
   <xsl:for-each select="studyExtent">
90 103
      <xsl:call-template name="studyExtent">
91 104
         <xsl:with-param name="methodfirstColStyle" select="$methodfirstColStyle"/> 
......
93 106
   </xsl:for-each>
94 107
   <xsl:for-each select="samplingDescription">
95 108
     <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
96
         Sampling Procedure
109
         Sampling Description:
97 110
         </td>
98 111
         <td width="${secondColWidth}" class="{$secondColStyle}">
99
          &#160;
100
         </td>
101
     </tr>
102
     <tr><td colspan="2">
103
         <xsl:call-template name="text">
112
          <xsl:call-template name="text">
104 113
           <xsl:with-param name="textfirstColStyle" select="$methodfirstColStyle"/>
105 114
         </xsl:call-template>
106 115
         </td>
107
      </tr>
116
     </tr>
108 117
   </xsl:for-each>
109 118
   <xsl:for-each select="spatialSamplingUnits">
110
      <xsl:call-template name="studyExtent">
119
      <xsl:call-template name="spatialSamplingUnits">
111 120
         <xsl:with-param name="methodfirstColStyle" select="$methodfirstColStyle"/> 
112 121
      </xsl:call-template>
113 122
   </xsl:for-each>
114 123
   <xsl:for-each select="citation">
115 124
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
116
         Citation
125
         Sampling Citation:
117 126
         </td>
118 127
         <td width="${secondColWidth}" class="{$secondColStyle}">
119
          &#160;
120
         </td>
121
      </tr>
122
      <tr><td colspan="2">
123
         <xsl:call-template name="citation">
128
           <xsl:call-template name="citation">
124 129
            <xsl:with-param name="citationfirstColStyle" select="$methodfirstColStyle"/>
125 130
            <xsl:with-param name="citationsubHeaderStyle" select="$methodsubHeaderStyle"/>
126 131
         </xsl:call-template>
127 132
         </td>
128 133
      </tr>
129
   </xsl:for-each>
134
    </xsl:for-each>
130 135
 </xsl:template>
131 136
 
132 137
 <xsl:template name="studyExtent">
133 138
    <xsl:param name="methodfirstColStyle"/>
134 139
    <xsl:param name="methodsubHeaderStyle"/>
135 140
    <xsl:for-each select="coverage">
136
       <tr><td colspan="2">
137
         <xsl:call-template name="coverage">
138
         </xsl:call-template>
141
        <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
142
         Sampling Coverage:
139 143
         </td>
140
      </tr>
144
         <td width="${secondColWidth}" class="{$secondColStyle}">
145
            <xsl:call-template name="coverage">
146
            </xsl:call-template>
147
         </td>
148
       </tr>
141 149
    </xsl:for-each>
142 150
    <xsl:for-each select="description">
143 151
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
144
         Sampling Area And Frequency
152
         Sampling Area And Frequency:
145 153
         </td>
146 154
         <td width="${secondColWidth}" class="{$secondColStyle}">
147
          &#160;
155
           <xsl:call-template name="text">
156
              <xsl:with-param name="textfirstColStyle" select="$methodfirstColStyle"/>
157
           </xsl:call-template>
148 158
         </td>
149
      </tr>
150
      <tr><td colspan="2">
151
         <xsl:call-template name="text">
152
           <xsl:with-param name="textfirstColStyle" select="$methodfirstColStyle"/>
153
         </xsl:call-template>
154
         </td>
155
      </tr>
159
       </tr>
156 160
    </xsl:for-each>
157 161
 </xsl:template>
158 162
 
......
160 164
   <xsl:param name="methodfirstColStyle"/>
161 165
   <xsl:for-each select="referenceEntityId">
162 166
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
163
         Sampling Unit Reference
167
         Sampling Unit Reference:
164 168
         </td>
165 169
         <td width="${secondColWidth}" class="{$secondColStyle}">
166 170
          <xsl:value-of select="."/>
......
169 173
   </xsl:for-each>
170 174
   <xsl:for-each select="coverage">
171 175
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
172
         Sampling Unit Location
176
         Sampling Unit Location:
173 177
         </td>
174 178
         <td width="${secondColWidth}" class="{$secondColStyle}">
175
          &#160;
176
         </td>
177
      </tr>
178
      <tr><td colspan="2">
179
         <xsl:call-template name="coverage">
179
            <xsl:call-template name="coverage">
180 180
          </xsl:call-template>
181 181
         </td>
182 182
      </tr>
......
189 189
  <xsl:template name="qualityControl">
190 190
   <xsl:param name="methodfirstColStyle"/>
191 191
   <xsl:param name="methodsubHeaderStyle"/>
192
   <tr class="{$methodsubHeaderStyle}"><td colspan="2"><xsl:text>Quality Control</xsl:text></td></tr>
193 192
   <xsl:call-template name="step">
194 193
     <xsl:with-param name="protocolfirstColStyle" select="$methodfirstColStyle"/>
195 194
     <xsl:with-param name="protocolsubHeaderStyle" select="$methodsubHeaderStyle"/>
lib/style/eml2/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

  
lib/style/eml2/eml-identifier-2.0.0.xsl
37 37
        <xsl:param name="packageID"/>
38 38
        <xsl:param name="system"/>
39 39
        <xsl:if test="normalize-space(.)">
40
          <table class="tabledefault" width="100%">
41 40
           <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
42 41
            Identifier:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
43 42
             <xsl:value-of select="$packageID"/></td></tr>
......
46 45
                  Catalog System:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
47 46
                  <xsl:value-of select="$system"/></td></tr>
48 47
             </xsl:if>
49
          </table>
50 48
        </xsl:if>
51 49
    </xsl:template>
52 50
    
lib/style/eml2/eml-access-2.0.0.xsl
68 68
        <tr><td class="{$accesssubHeaderStyle}" colspan="2">
69 69
        <xsl:text>Access Rules:</xsl:text></td></tr>
70 70
        <xsl:if test="normalize-space(./@order)='allowFirst' and (allow)">
71
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">&#160;</td>
72
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td>
73
        </tr>
74 71
            <xsl:call-template name="allow_deny">
75 72
                <xsl:with-param name="permission" select="'allow'"/>
76 73
                <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
77 74
             </xsl:call-template>
78 75
        </xsl:if>
79 76
        <xsl:if test="(deny)">
80
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">&#160;</td>
81
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td>
82
        </tr>
83
            <xsl:call-template name="allow_deny">
77
           <xsl:call-template name="allow_deny">
84 78
                <xsl:with-param name="permission" select="'deny'"/>
85 79
                <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
86 80
            </xsl:call-template>
87 81
        </xsl:if>
88
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">&#160;</td>
89
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td>
90
        </tr>
91 82
        <xsl:if test="normalize-space(acl/@order)='denyFirst' and (allow)">
92 83
            <xsl:call-template name="allow_deny">
93 84
                <xsl:with-param name="permission" select="'allow'"/>
lib/style/eml2/eml-2.0.0.xsl
31 31
-->
32 32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33 33
  <xsl:import href="eml-access-2.0.0.xsl"/>
34
  <xsl:import href="eml-additionalmetadata-2.0.0.xsl"/>
34 35
  <xsl:import href="eml-attribute-2.0.0.xsl"/>
35 36
  <xsl:import href="eml-attribute-enumeratedDomain-2.0.0.xsl"/>
36 37
  <xsl:import href="eml-constraint-2.0.0.xsl"/>
......
146 147
       </xsl:for-each>
147 148
       <!-- Additinal metadata-->
148 149
       <xsl:choose>
149
               <xsl:when test="displaymodule!='additionalmetadata'">
150
                  <xsl:for-each select="additionalMetadata">
151
                      <xsl:call-template name="additionalmetadataURL">
152
                        <xsl:with-param name="index" select="position()"/>
153
                      </xsl:call-template>
150
               <xsl:when test="$displaymodule='additionalmetadata'">
151
                   <xsl:for-each select="additionalMetadata"> 
152
                     <xsl:if test="$additionalmetadataindex=position()">
153
                        <xsl:call-template name="additionalmetadata"/>
154
                     </xsl:if>
154 155
                  </xsl:for-each>
155 156
               </xsl:when>
156 157
               <xsl:otherwise>
158
                 <xsl:if test="$displaymodule='dataset'">
157 159
                   <xsl:for-each select="additionalMetadata">
158
                     <xsl:if test="$additionalmetadataindex=position()">
159
                        <xsl:call-template name="additionalmetadata"/>
160
                     </xsl:if>
161
                  </xsl:for-each>
160
                      <xsl:call-template name="additionalmetadataURL">
161
                        <xsl:with-param name="index" select="position()"/>
162
                      </xsl:call-template>
163
                   </xsl:for-each>
164
                 </xsl:if>
162 165
              </xsl:otherwise>
163 166
       </xsl:choose>
164 167
   </xsl:template>
......
181 184
          <xsl:if test="$displaymodule='attributedomain'">
182 185
             <xsl:call-template name="datasetattributedomain"/>
183 186
          </xsl:if>
187
          <xsl:if test="$displaymodule='attributecoverage'">
188
             <xsl:call-template name="datasetattributecoverage"/>
189
          </xsl:if>
190
          <xsl:if test="$displaymodule='attributemethod'">
191
             <xsl:call-template name="datasetattributemethod"/>
192
          </xsl:if>
184 193
          <xsl:if test="$displaymodule='inlinedata'">
185 194
             <xsl:call-template name="datasetinlinedata"/>
186 195
          </xsl:if>
......
189 198
   
190 199
   <!--*************** Data set part *************-->
191 200
   <xsl:template name="datasetpart">
192
      <tr><td>
193
         <center>
201
      <tr><td colspan="2" width="100%">
202
         <right>
194 203
            <h3>Data Set Description</h3>
195
           </center>
204
         </right>
196 205
      </td></tr>
197
      <tr>
198
          <td width="100%">
199
             <xsl:call-template name="identifier">
206
       <xsl:call-template name="identifier">
200 207
                <xsl:with-param name="packageID" select="../@packageId"/>
201 208
                <xsl:with-param name="system" select="../@system"/>
202
             </xsl:call-template>
203
          </td>
204
      </tr>
209
      </xsl:call-template>
205 210
      <tr>
206
           <td width="100%">
211
           <td colspan="2" width="100%">
207 212
              <xsl:apply-templates select="." mode="dataset"/>
208 213
           </td>
209 214
      </tr>  
......
211 216
   
212 217
   <!--************ Entity part *****************-->
213 218
    <xsl:template name="entitypart">
214
      <tr><td>
215
         <center>
219
      <tr><td colspan="2" width="100%" >
220
         <right>
216 221
            <h3>Entity Description</h3>
217
           </center>
222
          </right>
218 223
      </td></tr>
219
      <tr>
220
          <td width="100%">
221
             <xsl:call-template name="identifier">
224
      <xsl:call-template name="identifier">
222 225
                <xsl:with-param name="packageID" select="../@packageId"/>
223 226
                <xsl:with-param name="system" select="../@system"/>
224
             </xsl:call-template>
225
          </td>
226
      </tr>
227
      </xsl:call-template>
228
     
227 229
      <tr>
228
           <td width="100%">
230
           <td width="100%" colspan="2">
229 231
             <!-- find the subtree to process -->
230 232
             <xsl:if test="$entitytype='dataTable'">
231 233
               <xsl:for-each select="dataTable">
......
311 313
   
312 314
   <!--************ Attribute part *****************-->
313 315
    <xsl:template name="attributepart">
314
      <tr><td>
315
         <center>
316
      <tr><td width="100%">
317
         <right>
316 318
            <h3>Attributes Description</h3>
317
         </center>
319
         </right>
318 320
      </td></tr>
319 321
      <tr>
320 322
           <td width="100%">
......
339 341
   <!--************************Attribute Domain************************-->
340 342
   <xsl:template name="datasetattributedomain">
341 343
      <tr><td>
342
         <center>
344
         <right>
343 345
            <h3>Attributes Domain</h3>
344
         </center>
346
         </right>
345 347
      </td></tr>
346 348
      <tr>
347 349
           <td width="100%">
......
352 354
                      <xsl:for-each select="attributeList">
353 355
                         <xsl:for-each select="attribute">
354 356
                            <xsl:if test="position()=$attributeindex">
355
                              <xsl:for-each select="measurementScale/*">
357
                              <xsl:for-each select="measurementScale/*/*">
356 358
                                  <xsl:call-template name="nonNumericDomain">
357 359
                                      <xsl:with-param name="nondomainfirstColStyle" select="$firstColStyle"/>
358 360
                                  </xsl:call-template>
......
363 365
                  </xsl:if>
364 366
              </xsl:for-each>
365 367
            </xsl:if>
368
             <xsl:if test="$entitytype='spatialRaster'">
369
              <xsl:for-each select="spatialRaster">
370
                  <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>
378
                                </xsl:for-each>
379
                              </xsl:if>
380
                          </xsl:for-each>
381
                      </xsl:for-each>
382
                  </xsl:if>
383
              </xsl:for-each>
384
            </xsl:if>
385
             <xsl:if test="$entitytype='spatialVector'">
386
              <xsl:for-each select="spatialVector">
387
                  <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>
395
                                </xsl:for-each>
396
                              </xsl:if>
397
                          </xsl:for-each>
398
                      </xsl:for-each>
399
                  </xsl:if>
400
              </xsl:for-each>
401
            </xsl:if>
402
             <xsl:if test="$entitytype='storedProcedure'">
403
              <xsl:for-each select="storedProcedure">
404
                  <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>
412
                                </xsl:for-each>
413
                              </xsl:if>
414
                          </xsl:for-each>
415
                      </xsl:for-each>
416
                  </xsl:if>
417
              </xsl:for-each>
418
            </xsl:if>
419
             <xsl:if test="$entitytype='view'">
420
              <xsl:for-each select="view">
421
                  <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>
429
                                </xsl:for-each>
430
                              </xsl:if>
431
                          </xsl:for-each>
432
                      </xsl:for-each>
433
                  </xsl:if>
434
              </xsl:for-each>
435
            </xsl:if>
436
             <xsl:if test="$entitytype='otherEntity'">
437
              <xsl:for-each select="otherEntity">
438
                  <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>
446
                                </xsl:for-each>
447
                              </xsl:if>
448
                          </xsl:for-each>
449
                      </xsl:for-each>
450
                  </xsl:if>
451
              </xsl:for-each>
452
            </xsl:if>
453
            
366 454
          </td>
367 455
      </tr>  
368 456
   </xsl:template>
369 457
   
370 458
   
371 459
   <!--************************Attribute Method************************-->
460
   <xsl:template name="datasetattributemethod">
461
       
462
   </xsl:template>
372 463
   
373 464
   
374
   
375 465
   <!--************************Attribute Coverage************************-->
466
   <xsl:template name="datasetattributecoverage">
467
   </xsl:template>
376 468
   
377
   
378 469
   <!--*************************Distribution Inline Data*****************-->
379 470
   <xsl:template name="datasetinlinedata">
380 471
      <tr><td>
381
         <center>
472
         <right>
382 473
            <h3>Inline Data</h3>
383
         </center>
474
         </right>
384 475
      </td></tr>
385 476
      <tr>
386 477
           <td width="100%">
......
477 568
                     Citation part
478 569
       ********************************************************-->
479 570
   <xsl:template name="emlcitation">
480
       <center>
481
          <h3>Citation Description</h3>
482
        </center>
571
       
483 572
        <table class="tabledefault" width="100%">
484 573
        <tr>
485
          <td width="100%">
486
            <xsl:call-template name="identifier">
574
          <td width="100%" colspan="2">
575
             <right>
576
               <h3>Citation Description</h3>
577
             </right>
578
          </td>
579
        </tr>
580
        <xsl:call-template name="identifier">
487 581
              <xsl:with-param name="packageID" select="../@packageId"/>
488 582
              <xsl:with-param name="system" select="../@system"/>
489
           </xsl:call-template>
490
          </td>
491
        </tr>
583
        </xsl:call-template>
492 584
        <tr>
493
          <td width="100%">
585
          <td width="100%" colspan="2">
494 586
            <xsl:call-template name="citation">
495 587
               <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
496 588
               <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
......
507 599
       ********************************************************-->
508 600
   
509 601
   <xsl:template name="emlsoftware">
510
     <center>
511
          <h3>Software Description</h3>
512
     </center>
513 602
     <table class="tabledefault" width="100%">
514
       <tr><td width="100%">
515
           <xsl:call-template name="identifier">
603
        <tr>
604
          <td width="100%" colspan="2">
605
             <right>
606
               <h3>Software Description</h3>
607
             </right>
608
          </td>
609
        </tr>
610
        <xsl:call-template name="identifier">
516 611
              <xsl:with-param name="packageID" select="../@packageId"/>
517 612
              <xsl:with-param name="system" select="../@system"/>
518
           </xsl:call-template>
519
        </td></tr>
613
        </xsl:call-template>
520 614
         <tr>
521
          <td width="100%">
615
          <td width="100%" colspan="2">
522 616
            <xsl:call-template name="software">
523 617
               <xsl:with-param name="softwarefirstColStyle" select="$firstColStyle"/>
524 618
               <xsl:with-param name="softwaresubHeaderStyle" select="$subHeaderStyle"/>
......
534 628
       ********************************************************-->
535 629
   
536 630
   <xsl:template name="emlprotocol">
537
    <center>
538
          <h3>Protocol Description</h3>
539
    </center>
540
     <table class="tabledefault" width="100%">
541
       <tr><td width="100%">
542
          <xsl:call-template name="identifier">
631
      <table class="tabledefault" width="100%">
632
        <tr>
633
          <td width="100%" colspan="2">
634
             <right>
635
               <h3>Protocal Description</h3>
636
             </right>
637
          </td>
638
        </tr>
639
        <xsl:call-template name="identifier">
543 640
              <xsl:with-param name="packageID" select="../@packageId"/>
544 641
              <xsl:with-param name="system" select="../@system"/>
545
          </xsl:call-template>
546
       </td></tr>
642
        </xsl:call-template>
547 643
       <tr>
548
       <td width="100%">
644
       <td width="100%" colspan="2">
549 645
            <xsl:call-template name="protocol">
550 646
               <xsl:with-param name="protocolfirstColStyle" select="$firstColStyle"/>
551 647
               <xsl:with-param name="protocolsubHeaderStyle" select="$subHeaderStyle"/>

Also available in: Unified diff