Project

General

Profile

« Previous | Next » 

Revision 1706

Added by Jing Tao over 21 years ago

Revise the modules to make it looking nicer.

View differences:

lib/style/eml2/eml-project-2.0.0.xsl
134 134
       <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
135 135
          Abstract:
136 136
          </td>
137
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
137
          <td width="{$secondColWidth}">
138 138
             <xsl:call-template name="text">
139 139
                <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
140 140
             </xsl:call-template>
......
149 149
       <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
150 150
          Funding:
151 151
          </td>
152
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
152
          <td width="{$secondColWidth}">
153 153
              <xsl:call-template name="text">
154 154
                 <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
155 155
              </xsl:call-template>
......
166 166
       <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
167 167
           <xsl:text>Study Area:</xsl:text>
168 168
          </td>
169
          <td width="{$secondColWidth}" class="{$secondColStyle}">
169
          <td width="{$secondColWidth}">
170 170
              <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
171 171
                  <xsl:for-each select="descriptor">
172 172
                      <xsl:for-each select="descriptorValue">
......
182 182
                        <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
183 183
                              Citation:
184 184
                            </td>
185
                            <td width="{$secondColWidth}" class="{$secondColStyle}">
185
                            <td width="{$secondColWidth}">
186 186
                             <xsl:call-template name="citation"> 
187 187
                                  <xsl:with-param name="citationfirstColStyle" select="projectfirstColStyle"/>
188 188
                             </xsl:call-template>
......
198 198
         <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
199 199
          Study Area Citation:
200 200
          </td>
201
          <td width="{$secondColWidth}" class="{$secondColStyle}">
201
          <td width="{$secondColWidth}">
202 202
              <xsl:call-template name="citation">
203 203
                   <xsl:with-param name="citationfirstColStyle" select="projectfirstColStyle"/>             
204 204
               </xsl:call-template>
......
210 210
        <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
211 211
          Study Area Coverage:
212 212
          </td>
213
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
213
          <td width="{$secondColWidth}">
214 214
             <xsl:call-template name="coverage"/>
215 215
          </td>
216 216
        </tr>
......
227 227
        <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
228 228
          Design Description:
229 229
          </td>
230
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
230
          <td width="{$secondColWidth}">
231 231
             <xsl:call-template name="text"/>
232 232
         </td>
233 233
       </tr>
......
236 236
        <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
237 237
          Design Citation:
238 238
          </td>
239
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
239
          <td width="{$secondColWidth}" >
240 240
             <xsl:call-template name="citation"/>
241 241
         </td>
242 242
       </tr>
......
252 252
       <tr><td width="{$firstColWidth}" class="{$projectfirstColStyle}">
253 253
          Related Project:
254 254
          </td>
255
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
255
          <td width="{$secondColWidth}">
256 256
            <xsl:call-template name="project">
257 257
              <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
258 258
            </xsl:call-template>
lib/style/eml2/eml-storedprocedure-2.0.0.xsl
145 145
       <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
146 146
            Parameter
147 147
            </td>
148
            <td width="{$secondColWidth}" class="{$secondColStyle}">
148
            <td width="{$secondColWidth}">
149 149
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
150 150
                  <xsl:for-each select="name">
151 151
                    <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
lib/style/eml2/eml-physical-2.0.0.xsl
200 200
      <tr>
201 201
        <td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
202 202
        Text Format:</td>
203
        <td class="{$physicalfirstColStyle}" width="{$secondColWidth}">
204
        &#160;</td>
203
        <td width="{$secondColWidth}">
204
          <table xsl:use-attribute-sets="cellspacing" class="tabledefault">
205
            <xsl:apply-templates>
206
              <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
207
            </xsl:apply-templates>
208
          </table>
209
        </td>
205 210
      </tr>
206
      <xsl:apply-templates>
207
        <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
208
      </xsl:apply-templates>
209
     
211
      
210 212
   </xsl:for-each>
211 213
  
212 214
  </xsl:template>
......
385 387
      <tr>
386 388
        <td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
387 389
        Externally Defined Format:</td>
388
        <td class="{$physicalfirstColStyle}" width="{$secondColWidth}">
389
        &#160;</td>
390
        <td width="{$secondColWidth}">
391
          <table xsl:use-attribute-sets="cellspacing" class="tabledefault">
392
            <xsl:apply-templates>
393
              <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
394
            </xsl:apply-templates>
395
          </table>
396
        </td>
390 397
      </tr>
391
      <xsl:apply-templates>
392
        <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
393
      </xsl:apply-templates>
394
   </xsl:for-each>
398
    </xsl:for-each>
395 399
  </xsl:template>
396 400
  
397 401
  <xsl:template match="formatName">
......
414 418
        <xsl:param name="physicalfirstColStyle"/>
415 419
        <tr>
416 420
        <td class="{$firstColStyle}" width="{$firstColWidth}">Citation:</td>
417
        <td class="{$secondColStyle}" width="{$secondColWidth}">
421
        <td class="{$secondColStyle}">
418 422
          <xsl:call-template name="citation">
419 423
            <xsl:with-param name="citationfirstColStyle" select="physicalfirstColStyle"/>
420 424
          </xsl:call-template>
......
431 435
      <tr>
432 436
        <td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
433 437
        Binary Raster Format:</td>
434
        <td class="{$physicalfirstColStyle}" width="{$secondColWidth}">
435
        &#160;</td>
438
        <td width="{$secondColWidth}">
439
           <table xsl:use-attribute-sets="cellspacing" class="tabledefault">
440
             <xsl:apply-templates>
441
               <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
442
             </xsl:apply-templates>
443
           </table>
444
        </td>
436 445
      </tr>
437
      <xsl:apply-templates>
438
        <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
439
      </xsl:apply-templates>
446
      
440 447
   </xsl:for-each>
441 448
  </xsl:template>
442 449
  
......
454 461
        <xsl:param name="physicalfirstColStyle"/>
455 462
        <tr>
456 463
        <td class="{$firstColStyle}" width="{$firstColWidth}">Multiple Bands:</td>
457
        <td class="{$secondColStyle}" width="{$secondColWidth}">
464
        <td class="{$secondColStyle}">
458 465
         <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
459 466
            <tr>
460 467
                <td class="{$firstColStyle}" width="{$firstColWidth}">Number of Spectral Bands:</td>
lib/style/eml2/eml-entity-2.0.0.xsl
60 60
  <xsl:template name="entityadditionalInfo">
61 61
      <xsl:param name="entityfirstColStyle"/> 
62 62
      <tr><td width="{$firstColWidth}" class="{$entityfirstColStyle}">
63
      Additional Info:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
64
      <xsl:value-of select="."/></td></tr>
63
      Additional Info:</td><td width="{$secondColWidth}">
64
        <xsl:call-template name="text"/>
65
      </td></tr>
65 66
  </xsl:template>
66 67
  
67 68

  
lib/style/eml2/eml-spatialraster-2.0.0.xsl
352 352
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
353 353
            Definition of<xsl:value-of select="../@name"/> Geographic Coordinate System
354 354
            </td>
355
            <td width="{$secondColWidth}" class="{$secondColStyle}">
355
            <td width="{$secondColWidth}">
356 356
              <xsl:call-template name="geogCoordSysType">
357 357
                 <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
358 358
              </xsl:call-template>
......
363 363
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
364 364
            Projection
365 365
            </td>
366
            <td width="{$secondColWidth}" class="{$secondColStyle}">
366
            <td width="{$secondColWidth}">
367 367
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
368 368
                 <xsl:for-each select="parameter">
369 369
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
370 370
                          <xsl:value-of select="./@name"/>
371 371
                         </td>
372
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
372
                         <td width="{$secondColWidth}">
373 373
                             <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
374 374
                                <tr>
375 375
                                    <td width="{$firstColWidth}" class="{$secondColStyle}">
......
401 401
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
402 402
            Altitude System Definition
403 403
            </td>
404
            <td width="{$secondColWidth}" class="{$secondColStyle}">
404
            <td width="{$secondColWidth}">
405 405
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
406 406
                 <xsl:for-each select="altitudeDatumName">
407 407
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
......
447 447
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
448 448
            Depth System Definition
449 449
            </td>
450
            <td width="{$secondColWidth}" class="{$secondColStyle}">
450
            <td width="{$secondColWidth}">
451 451
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
452 452
                 <xsl:for-each select="depthDatumName">
453 453
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
......
507 507
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
508 508
             Spheroid
509 509
            </td>
510
            <td width="{$secondColWidth}" class="{$secondColStyle}">
510
            <td width="{$secondColWidth}">
511 511
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
512 512
                  <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
513 513
                       Name
......
539 539
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
540 540
             Prime Meridian
541 541
            </td>
542
            <td width="{$secondColWidth}" class="{$secondColStyle}">
542
            <td width="{$secondColWidth}">
543 543
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
544 544
                  <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
545 545
                       Name
......
580 580
        <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
581 581
            Corner Point
582 582
            </td>
583
            <td width="{$secondColWidth}" class="{$secondColStyle}">
583
            <td width="{$secondColWidth}">
584 584
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
585 585
                 <xsl:for-each select="corner">
586 586
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
......
626 626
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
627 627
            Control Point
628 628
            </td>
629
            <td width="{$secondColWidth}" class="{$secondColStyle}">
629
            <td width="{$secondColWidth}">
630 630
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
631 631
                 <xsl:for-each select="column">
632 632
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
......
681 681
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
682 682
            Bilinear Fit
683 683
            </td>
684
            <td width="{$secondColWidth}" class="{$secondColStyle}">
684
            <td width="{$secondColWidth}">
685 685
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
686 686
                 <xsl:for-each select="xIntercept">
687 687
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
......
743 743
       <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
744 744
             Quantitative Report
745 745
            </td>
746
            <td width="{$secondColWidth}" class="{$secondColStyle}">
746
            <td width="{$secondColWidth}">
747 747
                <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
748 748
                  <xsl:for-each select="quantitativeAccuracyReport">
749 749
                     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
......
902 902
     <tr><td width="{$firstColWidth}" class="{$spatialrasterfirstColStyle}">
903 903
             Availability of Lens Aberration Correction
904 904
            </td>
905
            <td width="{$secondColWidth}" class="{$secondColStyle}">
905
            <td width="{$secondColWidth}">
906 906
               <xsl:call-template name="bandDescription">
907 907
                  <xsl:with-param name="spatialrasterfirstColStyle" select="$spatialrasterfirstColStyle"/>
908 908
               </xsl:call-template>
lib/style/eml2/eml-method-2.0.0.xsl
124 124
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
125 125
         Sampling Citation:
126 126
         </td>
127
         <td width="${secondColWidth}" class="{$secondColStyle}">
127
         <td width="${secondColWidth}">
128 128
           <xsl:call-template name="citation">
129 129
            <xsl:with-param name="citationfirstColStyle" select="$methodfirstColStyle"/>
130 130
            <xsl:with-param name="citationsubHeaderStyle" select="$methodsubHeaderStyle"/>
......
141 141
        <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
142 142
         Sampling Coverage:
143 143
         </td>
144
         <td width="${secondColWidth}" class="{$secondColStyle}">
144
         <td width="${secondColWidth}">
145 145
            <xsl:call-template name="coverage">
146 146
            </xsl:call-template>
147 147
         </td>
......
175 175
      <tr><td width="{$firstColWidth}" class="{$methodfirstColStyle}">
176 176
         Sampling Unit Location:
177 177
         </td>
178
         <td width="${secondColWidth}" class="{$secondColStyle}">
178
         <td width="${secondColWidth}">
179 179
            <xsl:call-template name="coverage">
180 180
          </xsl:call-template>
181 181
         </td>
lib/style/eml2/eml-attribute-enumeratedDomain-2.0.0.xsl
72 72
  <xsl:template name="textDomain">
73 73
       <xsl:param name="nondomainfirstColStyle"/>
74 74
       <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}"><b>Text Domain</b></td>
75
            <td width="{$secondColWidth}">&#160;
75
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;
76 76
            </td>
77 77
       </tr> 
78 78
       <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Definition</td>
79
            <td width="{$secondColWidth}"><xsl:value-of select="definition"/>
79
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="definition"/>
80 80
            </td>
81 81
        </tr>
82 82
        <xsl:for-each select="parttern">
83 83
          <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Pattern</td>
84
            <td width="{$secondColWidth}"><xsl:value-of select="."/>
84
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="."/>
85 85
            </td>
86 86
          </tr>
87 87
        </xsl:for-each>
88 88
        <xsl:if test="source">
89 89
          <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Source</td>
90
            <td width="{$secondColWidth}"><xsl:value-of select="source"/>
90
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="source"/>
91 91
            </td>
92 92
          </tr>
93 93
        </xsl:if>
......
97 97
     <xsl:param name="nondomainfirstColStyle"/>
98 98
     <xsl:if test="codeDefinition">
99 99
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}"><b>Enumerated Domain</b></td>
100
            <td width="{$secondColWidth}">&#160;
100
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;
101 101
            </td>
102 102
       </tr>
103 103
       <xsl:for-each select="codeDefinition">
......
107 107
                          <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">
108 108
                               Code
109 109
                              </td>
110
                               <td width="{$secondColWidth}"><xsl:value-of select="code"/></td>
110
                               <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="code"/></td>
111 111
                              
112 112
                           </tr>
113 113
                           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">
114 114
                               Definition
115 115
                              </td>
116
                               <td width="{$secondColWidth}"><xsl:value-of select="definition"/></td>
116
                               <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="definition"/></td>
117 117
                               
118 118
                           </tr>
119 119
                           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">
120 120
                               Source
121 121
                              </td>
122
                               <td width="{$secondColWidth}"><xsl:value-of select="source"/></td>
122
                               <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="source"/></td>
123 123
                          </tr>
124 124
                      </table>
125 125
                   </td>
......
132 132
           </td>
133 133
        </tr>
134 134
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Set Name:</td>
135
            <td width="{$secondColWidth}"><xsl:value-of select="externalCodeSet/codesetName"/>
135
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="externalCodeSet/codesetName"/>
136 136
           </td>
137 137
        </tr>
138 138
        <xsl:for-each select="externalCodeSet/citation">
......
146 146
        </xsl:for-each>
147 147
        <xsl:for-each select="externalCodeSet/codesetURL">
148 148
           <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">URL</td>
149
               <td width="{$secondColWidth}">
149
               <td width="{$secondColWidth}" class="{$secondColStyle}">
150 150
                 <a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></a>
151 151
              </td>
152 152
           </tr>
......
154 154
     </xsl:if>
155 155
     <xsl:if test="entityCodeList">
156 156
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}"><b>Enumerated Domain(Entity)</b></td>
157
            <td width="{$secondColWidth}">&#160;
157
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;
158 158
            </td>
159 159
       </tr>
160 160
        <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Entity Reference</td>
161
            <td width="{$secondColWidth}"><xsl:value-of select="entityCodeList/entityReference"/>
161
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="entityCodeList/entityReference"/>
162 162
            </td>
163 163
       </tr>
164 164
       <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Attribute Value Reference</td>
165
            <td width="{$secondColWidth}"><xsl:value-of select="entityCodeList/valueAttributeReference"/>
165
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="entityCodeList/valueAttributeReference"/>
166 166
            </td>
167 167
       </tr>
168 168
       <tr><td width="{$firstColWidth}" class="{$nondomainfirstColStyle}">Attribute Definition Reference</td>
169
            <td width="{$secondColWidth}"><xsl:value-of select="entityCodeList/definitionAttributeReference"/>
169
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="entityCodeList/definitionAttributeReference"/>
170 170
            </td>
171 171
       </tr>
172 172
     </xsl:if>  
lib/style/eml2/eml-constraint-2.0.0.xsl
184 184
      </tr>
185 185
      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
186 186
          &#160;</td>
187
          <td width="{$secondColWidth}" class="{$secondColStyle}">
187
          <td width="{$secondColWidth}">
188 188
           <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
189 189
              <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
190 190
                   <xsl:text>Parent</xsl:text></td>
......
196 196
      </tr>
197 197
      <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
198 198
          &#160;</td>
199
          <td width="{$secondColWidth}" class="{$secondColStyle}">
199
          <td width="{$secondColWidth}">
200 200
           <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
201 201
              <tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}">
202 202
                   <xsl:text>Children</xsl:text></td>
......
263 263
     </xsl:if>
264 264
  </xsl:template>
265 265
  
266

  
267
  <xsl:template match="constraint">
268
      <xsl:if test="normalize-space(constraintType)!=''">
269
            <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
270
        <xsl:text>Type</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
271
        <xsl:value-of select="constraintType"/></td></tr>
272
      </xsl:if>
273
      <xsl:if test="normalize-space(constraintName)!=''">
274
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
275
        <xsl:text>Name</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
276
        <xsl:value-of select="constraintName"/></td></tr>
277
      </xsl:if>
278
      <xsl:if test="normalize-space(constraintDescription)!=''">
279
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
280
        <xsl:text>Description</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
281
        <xsl:value-of select="constraintDescription"/></td></tr>
282
      </xsl:if>
283
      <xsl:if test="normalize-space(entityId)!=''">
284
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
285
        <xsl:text>Entity Id</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
286
        <xsl:value-of select="entityId"/></td></tr>
287
      </xsl:if>
288
      <xsl:if test="normalize-space(referencedEntityId)!=''">
289
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
290
        <xsl:text>Referenced Entity Id</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
291
        <xsl:value-of select="referencedEntityId"/></td></tr>
292
      </xsl:if>
293
      <xsl:if test="normalize-space(referencedKey)!=''">
294
          <xsl:for-each select="referencedKey/attributeName">
295
            <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
296
            <xsl:text>Referenced Key</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
297
            <xsl:apply-templates select="."/></td></tr>
298
          </xsl:for-each>
299
      </xsl:if>
300
      <xsl:if test="normalize-space(key)!=''">
301
          <xsl:for-each select="key/attributeName">
302
            <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
303
            <xsl:text>Key</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
304
            <xsl:apply-templates select="."/></td></tr>
305
          </xsl:for-each>
306
      </xsl:if>
307
      <xsl:if test="normalize-space(cardinality)!=''">
308
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
309
        <xsl:text>Cardinality</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
310
        <xsl:value-of select="cardinality"/></td></tr>
311
      </xsl:if>
312
      <xsl:if test="normalize-space(checkCondition)!=''">
313
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
314
        <xsl:text>Check Condition</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}">
315
        <xsl:value-of select="checkCondition"/></td></tr>
316
      </xsl:if>
317
   </xsl:template>
318

  
319
   <xsl:template match="attributeName">
320
        <xsl:value-of select="."/>
321
   </xsl:template>
322

  
323

  
324 266
</xsl:stylesheet>
lib/style/eml2/eml-dataset-2.0.0.xsl
93 93
            <td width="{$firstColWidth}"  class="{$firstColStyle}">
94 94
            &#160;
95 95
            </td>
96
            <td width="{$secondColWidth}" class="{$secondColStyle}" >
96
            <td width="{$secondColWidth}">
97 97
              <xsl:call-template name="text">
98 98
                <xsl:with-param name="textfirstColStyle" select="$firstColStyle"/>
99 99
              </xsl:call-template>
......
126 126
          <td width="{$firstColWidth}"  class="{$firstColStyle}">
127 127
          Description:
128 128
          </td>
129
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
129
          <td width="{$secondColWidth}">
130 130
            <xsl:call-template name="text">
131 131
               <xsl:with-param name="textfirstColStyle" select="$firstColStyle"/>
132 132
             </xsl:call-template>
......
141 141
          <td width="{$firstColWidth}" class="{$firstColStyle}">
142 142
          History:
143 143
          </td>
144
          <td width="{$secondColWidth}" class="{$secondColStyle}" >
144
          <td width="{$secondColWidth}">
145 145
            <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
146 146
              <xsl:for-each select="changeHistory">
147 147
                <xsl:call-template name="historydetails"/>
lib/style/eml2/eml-software-2.0.0.xsl
123 123
           <tr><td width="{$firstColWidth}" class="{$softwarefirstColStyle}">
124 124
             <b>Distribution</b>
125 125
            </td>
126
            <td width="{$secondColWidth}" class="{$secondColStyle}">
126
            <td width="{$secondColWidth}">
127 127
               <xsl:call-template name="distribution">
128 128
                 <xsl:with-param name="disfirstColStyle" select="$softwarefirstColStyle"/>
129 129
                 <xsl:with-param name="dissubHeaderStyle" select="$softwaresubHeaderStyle"/>
lib/style/eml2/eml-access-2.0.0.xsl~
33 33

  
34 34

  
35 35
  <xsl:output method="html" encoding="iso-8859-1"/>
36

  
37
  
38

  
39
          <!--xsl:apply-templates select="acl/identifier"
40
mode="resource"/-->
41
          <xsl:apply-templates select="acl"/>
42
          <tr>
43
            <td class="{$subHeaderStyle}" colspan="2"><xsl:text>Rules:</xsl:text>
44
            </td>
45
          </tr>
46
          <xsl:if test="normalize-space(acl/@order)='allowFirst' and (//allow)">
47
            <tr>
48
              <td width="{$firstColWidth}" class="{$firstColStyle}">&#160;</td>
49
              <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td>
50
            </tr>
51
            <xsl:call-template name="allow_deny">
52
              <xsl:with-param name="permission" select="'allow'"/>
36
  <xsl:template name="access">
37
    <xsl:param name="accessfirstColStyle"/>
38
    <xsl:param name="accesssubHeaderStyle"/>
39
    <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
40
        <xsl:choose>
41
         <xsl:when test="references!=''">
42
          <xsl:variable name="ref_id" select="references"/>
43
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
44
          <xsl:for-each select="$references">
45
            <xsl:call-template name="accessCommon">
46
             <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
47
             <xsl:with-param name="accesssubHeaderStyle" select="$accesssubHeaderStyle"/>
53 48
            </xsl:call-template>
54
          </xsl:if>
55
          <xsl:if test="(//deny)">
56
          <tr>
57
            <td width="{$firstColWidth}" class="{$firstColStyle}">&#160;</td>
58
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td>
59
          </tr>
60
          <xsl:call-template name="allow_deny">
61
            <xsl:with-param name="permission" select="'deny'"/>
49
          </xsl:for-each>
50
        </xsl:when>
51
        <xsl:otherwise>
52
          <xsl:call-template name="accessCommon">
53
             <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
54
             <xsl:with-param name="accesssubHeaderStyle" select="$accesssubHeaderStyle"/>
62 55
          </xsl:call-template>
63
          </xsl:if>
64
          <tr>
65
            <td width="{$firstColWidth}" class="{$firstColStyle}">&#160;</td>
66
            <td width="{$secondColWidth}" class="{$secondColStyle}">&#160;</td>
67
          </tr>
68
          <xsl:if test="normalize-space(acl/@order)='denyFirst' and (//allow)">
56
        </xsl:otherwise>
57
      </xsl:choose>
58
    </table>
59
    
60
  </xsl:template>
61
  <xsl:template name="accessCommon">
62
     <xsl:param name="accessfirstColStyle" />
63
     <xsl:param name="accesssubHeaderStyle"/>
64
        <xsl:call-template name="accesssystem">
65
           <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
66
           <xsl:with-param name="accesssubHeaderStyle" select="$accesssubHeaderStyle"/>
67
        </xsl:call-template>
68
        <tr><td class="{$accesssubHeaderStyle}" colspan="2">
69
        <xsl:text>Access Rules:</xsl:text></td></tr>
70
        <xsl:if test="normalize-space(./@order)='allowFirst' and (allow)">
69 71
            <xsl:call-template name="allow_deny">
70 72
                <xsl:with-param name="permission" select="'allow'"/>
73
                <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
74
             </xsl:call-template>
75
        </xsl:if>
76
        <xsl:if test="(deny)">
77
           <xsl:call-template name="allow_deny">
78
                <xsl:with-param name="permission" select="'deny'"/>
79
                <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
71 80
            </xsl:call-template>
72
          </xsl:if>
73
     </table>
74
            </div>
75
          <!-- BEGIN SBCLTER PAGE BOTTOM HTML -->
76
            </td>
77
          </tr>
78
          <tr>
79
            <td colspan="2">
80
              <!--div class="nsf" >This material is based on the upon work
81
              supported by the National Science Foundation under Cooperative
82
              Agreement #OCE-9982105. Any opinions, findings, or recommendations
83
              expressed in the material are those of author(s) and do not
84
              necessarily reflect the view of the National Science Foundation.
85
              </div-->
86
            </td>
87
          </tr>
88
          <tr>
89
            <td class="footer-menu" colspan="2">
90
              <div class="footer-menu">
91
                @footer-menu@
92
              </div>
93
            </td>
94
          </tr>
95
          <tr>
96
            <td class="footer-left">
97
              <div class="footer-left">
98
                @copyright@
99
              </div>
100
            </td>
101
            <td class="footer-right">
102
              <div class="footer-right">
103
               Contact: <a class="footer-link"
104
                        href="@mailto-address@">
105
                        @header-subtitle@data@nceas.ucsb.edu
106
                        </a> |
107
                <a class="footer-link"
108
                   href="@intranet-address@"
109
                   target="offline">Internal Login
110
                </a>
111
              </div>
112
            </td>
113
          </tr>
114
        </table>
115
      </div>
116
    </body>
117
    </html>
118
    <!-- END SBCLTER PAGE BOTTOM HTML -->
119
</xsl:template>
81
        </xsl:if>
82
        <xsl:if test="normalize-space(acl/@order)='denyFirst' and (allow)">
83
            <xsl:call-template name="allow_deny">
84
                <xsl:with-param name="permission" select="'allow'"/>
85
                <xsl:with-param name="accessfirstColStyle" select="$accessfirstColStyle"/>
86
            </xsl:call-template>
87
        </xsl:if>
88
     
89
   
90
  </xsl:template>
120 91

  
121
<xsl:template name="allow_deny">
92

  
93
  <xsl:template name="allow_deny">
122 94
   <xsl:param name="permission"/>
95
   <xsl:param name="accessfirstColStyle" />
96
   <xsl:param name="accesssubHeaderSytle"/>
123 97
   <xsl:choose>
124 98
       <xsl:when test="$permission='allow'">
125
           <xsl:for-each select="//allow">
126
           <tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
99
           <xsl:for-each select="allow">
100
           <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}" valign="top">
127 101
            ALLOW:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
128
                    <table width="100%">
129
                        <tr><td width="{$secondColIndent}" valign="top" class="{$firstColStyle}">
102
                    <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
103
                        <tr><td width="{$secondColIndent}" valign="top" class="{$accessfirstColStyle}">
130 104
                        <xsl:for-each select="./permission">
131 105
                            <xsl:text>[</xsl:text><xsl:value-of select="."/><xsl:text>] </xsl:text>
132 106
                        </xsl:for-each></td>
133
                        <td class="{$firstColStyle}">
134
                        <xsl:for-each select="./principal">
107
                        <td class="{$accessfirstColStyle}">
108
                        <xsl:for-each select="principal">
135 109
                            <xsl:value-of select="."/><br/>
136 110
                        </xsl:for-each>
137 111
                        </td></tr>
138
                        <xsl:if test="(./ticketCount) and normalize-space(./ticketCount)!=''">
139
                            <tr><td width="{$secondColIndent}" valign="top">ticket<br />count:</td>
140
                                <td><xsl:value-of select="./ticketCount"/></td></tr>
141
                        </xsl:if>
142
                        <xsl:if test="(./duration)">
143
                            <xsl:apply-templates select="./duration"/>
144
                        </xsl:if>
145
                         <tr><td width="{$secondColIndent}">&#160;</td><td>&#160;</td></tr>
112
                        <tr><td width="{$secondColIndent}">&#160;</td><td>&#160;</td></tr>
146 113
                    </table></td></tr>
147 114
          </xsl:for-each>
148 115
       </xsl:when>
149 116
       <xsl:otherwise>
150
           <xsl:for-each select="//deny">
151
        <tr><td width="{$firstColWidth}" class="{$firstColStyle}" valign="top">
117
           <xsl:for-each select="deny">
118
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}" valign="top">
152 119
            DENY:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
153
           <table width="100%">
154
              <tr><td width="{$secondColIndent}" valign="top" class="{$firstColStyle}">
155
                <xsl:for-each select="./permission">
120
           <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
121
              <tr><td width="{$secondColIndent}" valign="top" class="{$accessfirstColStyle}">
122
                <xsl:for-each select="permission">
156 123
                    <xsl:text>[</xsl:text><xsl:value-of select="."/><xsl:text>] </xsl:text>
157 124
                </xsl:for-each></td>
158
                <td class="{$firstColStyle}">
159
                <xsl:for-each select="./principal">
125
                <td class="{$accessfirstColStyle}">
126
                <xsl:for-each select="principal">
160 127
                    <xsl:value-of select="."/><br/>
161 128
                </xsl:for-each>
162 129
                </td></tr>
163
                <xsl:if test="(./ticketCount) and normalize-space(./ticketCount)!=''">
164
                    <tr><td width="{$secondColIndent}" valign="top">ticket<br />count:</td>
165
                        <td><xsl:value-of select="./ticketCount"/></td></tr>
166
                </xsl:if>
167
                <xsl:if test="(./duration)">
168
                    <xsl:apply-templates select="./duration"/>
169
                </xsl:if>
170
                 <tr><td width="{$secondColIndent}">&#160;</td><td>&#160;</td></tr>
130
                <tr><td width="{$secondColIndent}">&#160;</td><td>&#160;</td></tr>
171 131
            </table></td></tr>
172 132
        </xsl:for-each>
173 133
       </xsl:otherwise>
174 134
   </xsl:choose>
175
</xsl:template>
176 135

  
177
<xsl:template match="acl">
178
     <tr>
179
       <td class="{$subHeaderStyle}" colspan="2">
180
         <xsl:text>Access Control:</xsl:text>
181
       </td>
182
     </tr>
183
     <tr>
184
      <td width="{$firstColWidth}" class="{$firstColStyle}">Auth System:
185
      </td>
186
      <td width="{$secondColWidth}" class="{$secondColStyle}">
187
          <xsl:value-of select="./@authSystem"/>
188
      </td>
189
     </tr>
190
     <tr>
191
      <td width="{$firstColWidth}" class="{$firstColStyle}">Order:
192
      </td>
193
      <td width="{$secondColWidth}" class="{$secondColStyle}">
194
          <xsl:value-of select="./@order"/>
195
      </td>
196
     </tr>
136
   </xsl:template>
137
    
138
  <xsl:template name="accesssystem">
139
       <xsl:param name="accessfirstColStyle" />
140
       <xsl:param name="accesssubHeaderStyle"/>
141
        <tr><td class="{$accesssubHeaderStyle}" colspan="2">
142
        <xsl:text>Access Control:</xsl:text></td></tr>
143
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">Auth System:</td>
144
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="./@authSystem"/></td>
145
        </tr>
146
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">Order:</td>
147
            <td width="{$secondColWidth}" class="{$secondColStyle}"><xsl:value-of select="./@order"/></td>
148
        </tr>
197 149
  </xsl:template>
150
 
198 151
</xsl:stylesheet>
lib/style/eml2/eml-access-2.0.0.xsl
98 98
       <xsl:when test="$permission='allow'">
99 99
           <xsl:for-each select="allow">
100 100
           <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}" valign="top">
101
            ALLOW:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
101
            ALLOW:</td><td width="{$secondColWidth}">
102 102
                    <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
103 103
                        <tr><td width="{$secondColIndent}" valign="top" class="{$accessfirstColStyle}">
104 104
                        <xsl:for-each select="./permission">
......
116 116
       <xsl:otherwise>
117 117
           <xsl:for-each select="deny">
118 118
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}" valign="top">
119
            DENY:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
119
            DENY:</td><td width="{$secondColWidth}">
120 120
           <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
121 121
              <tr><td width="{$secondColIndent}" valign="top" class="{$accessfirstColStyle}">
122 122
                <xsl:for-each select="permission">

Also available in: Unified diff