Project

General

Profile

« Previous | Next » 

Revision 1726

Added by Jing Tao almost 21 years ago

Revised style sheet base on matthew's suggestion.

View differences:

lib/style/eml2/eml-project-2.0.0.xsl
181 181
                            <xsl:value-of select="../@name"/>
182 182
                          </td>
183 183
                          <td width="{$secondColWidth}" class="{$secondColStyle}">
184
                              <xsl:value-of select="descriptorValue"/><xsl:value-of select="./@name_or_id"/>
184
                             <xsl:choose>
185
                                <xsl:when test="./@citableClassificationSystem">
186
                                  <xsl:value-of select="."/>&#160;<xsl:value-of select="./@name_or_id"/>
187
                                </xsl:when>
188
                                <xsl:otherwise>
189
                                  <xsl:value-of select="."/>&#160;<xsl:value-of select="./@name_or_id"/>&#160;(No Citable Classification System)
190
                                </xsl:otherwise>
191
                              </xsl:choose>
185 192
                          </td>
186 193
                      </tr>
187 194
                      </xsl:for-each>
lib/style/eml2/eml-settings-2.0.0.xsl
173 173
     Some of these nested tables set their first column to
174 174
     the following width: -->
175 175
  <xsl:param name="secondColIndent" select="'10%'"/>
176
  
177
<!-- the first column width of attribute table-->
178
  <xsl:param name="attributefirstColWidth" select="'15%'"/>
176 179

  
177 180
</xsl:stylesheet>
lib/style/eml2/eml-access-2.0.0.xsl
100 100
           <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}" valign="top">
101 101
            ALLOW:</td><td width="{$secondColWidth}">
102 102
                    <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
103
                        <tr><td width="{$secondColIndent}" valign="top" class="{$accessfirstColStyle}">
103
                        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">
104 104
                        <xsl:for-each select="./permission">
105 105
                            <xsl:text>[</xsl:text><xsl:value-of select="."/><xsl:text>] </xsl:text>
106 106
                        </xsl:for-each></td>
107
                        <td class="{$accessfirstColStyle}">
107
                        <td class="{$accessfirstColStyle}" width="{$secondColWidth}">
108 108
                        <xsl:for-each select="principal">
109 109
                            <xsl:value-of select="."/><br/>
110 110
                        </xsl:for-each>
111 111
                        </td></tr>
112
                        <tr><td width="{$secondColIndent}">&#160;</td><td>&#160;</td></tr>
113 112
                    </table></td></tr>
114 113
          </xsl:for-each>
115 114
       </xsl:when>
......
118 117
        <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}" valign="top">
119 118
            DENY:</td><td width="{$secondColWidth}">
120 119
           <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
121
              <tr><td width="{$secondColIndent}" valign="top" class="{$accessfirstColStyle}">
120
              <tr><td width="{$firstColWidth}" class="{$accessfirstColStyle}">
122 121
                <xsl:for-each select="permission">
123 122
                    <xsl:text>[</xsl:text><xsl:value-of select="."/><xsl:text>] </xsl:text>
124 123
                </xsl:for-each></td>
125
                <td class="{$accessfirstColStyle}">
124
                <td class="{$accessfirstColStyle}" width="{$secondColWidth}">
126 125
                <xsl:for-each select="principal">
127 126
                    <xsl:value-of select="."/><br/>
128 127
                </xsl:for-each>
129 128
                </td></tr>
130
                <tr><td width="{$secondColIndent}">&#160;</td><td>&#160;</td></tr>
131
            </table></td></tr>
129
              </table></td></tr>
132 130
        </xsl:for-each>
133 131
       </xsl:otherwise>
134 132
   </xsl:choose>
lib/style/eml2/eml-attribute-2.0.0.xsl
70 70

  
71 71

  
72 72
  <!-- First row for attribute name-->
73
  <tr><th colspan="1" valign="center" align="center" class="bordered">Attribute Names</th>
73
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Attribute Names</th>
74 74
  <xsl:for-each select="attribute">
75 75
    <xsl:choose>
76 76
         <xsl:when test="references!=''">
......
88 88
  </tr>
89 89
  
90 90
  <!-- Second row for attribute label-->
91
  <tr><th colspan="1" align="center"  class="bordered" >Label(s) of the Column</th>
91
  <tr><th colspan="1" width="{$attributefirstColWidth}" class="bordered" >Label(s) of the Column</th>
92 92
   <xsl:for-each select="attribute">
93 93
    <xsl:variable name="stripes">
94 94
              <xsl:choose>
......
140 140
  </tr>
141 141
  
142 142
  <!-- Third row for attribute defination-->
143
  <tr><th colspan="1" align="center"  class="bordered">Meaning</th>
143
  <tr><th colspan="1" width="{$attributefirstColWidth}" class="bordered">Meaning</th>
144 144
    <xsl:for-each select="attribute">
145 145
      <xsl:variable name="stripes">
146 146
              <xsl:choose>
......
168 168
  </tr>
169 169
  
170 170
  <!-- The fourth row for attribute storage type-->
171
   <tr><th colspan="1" align="center"  class="bordered">Type of Value</th>
171
   <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Type of Value</th>
172 172
     <xsl:for-each select="attribute">
173 173
      <xsl:variable name="stripes">
174 174
              <xsl:choose>
......
220 220
  </tr>
221 221
  
222 222
  <!-- The fifth row for meaturement type-->
223
  <tr><th colspan="1" align="center"  class="bordered">Measurement Type</th>
223
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Measurement Type</th>
224 224
   <xsl:for-each select="attribute">
225 225
    <xsl:variable name="stripes">
226 226
              <xsl:choose>
......
252 252
  </tr>
253 253
  
254 254
  <!-- The sixth row for meaturement domain-->
255
  <tr><th colspan="1" align="center"  class="bordered">Measurement Domain</th>
255
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Measurement Domain</th>
256 256
   <xsl:for-each select="attribute">
257 257
    <xsl:variable name="stripes">
258 258
              <xsl:choose>
......
303 303

  
304 304
 
305 305
  <!-- The seventh row for missing value code-->
306
  <tr><th colspan="1" align="center"  class="bordered">Missing Value Code</th>
306
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Missing Value Code</th>
307 307
    <xsl:for-each select="attribute">
308 308
      <xsl:variable name="stripes">
309 309
              <xsl:choose>
......
337 337
                 </td>
338 338
              </xsl:when>
339 339
              <xsl:otherwise>
340
                <td colspan="1" align="center" class="{$stripes}">
340
                <td colspan="1" width="{$firstColWidth}" class="{$stripes}">
341 341
                   &#160;
342 342
                </td>
343 343
              </xsl:otherwise>
......
372 372
 
373 373
 
374 374
  <!-- The eighth row for accuracy report-->
375
  <tr><th colspan="1" align="center"  class="bordered">Accuracy Report</th>
375
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Accuracy Report</th>
376 376
     <xsl:for-each select="attribute">
377 377
     <xsl:variable name="stripes">
378 378
         <xsl:choose>
......
422 422
  </tr>
423 423
  
424 424
  <!-- The nineth row for quality accuracy accessment -->
425
  <tr><th colspan="1" align="center"  class="bordered">Accuracy Assessment</th>
425
  <tr><th colspan="1" width="{$attributefirstColWidth}" class="bordered">Accuracy Assessment</th>
426 426
     <xsl:for-each select="attribute">
427 427
     <xsl:variable name="stripes">
428 428
         <xsl:choose>
......
496 496
  </tr>
497 497
  
498 498
   <!-- The tenth row for coverage-->
499
  <tr><th colspan="1" align="center"  class="bordered">Coverage</th>
499
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Coverage</th>
500 500
   <xsl:for-each select="attribute">
501 501
    <xsl:variable name="index" select="position()"/>
502 502
    <xsl:variable name="stripes">
......
558 558
  
559 559

  
560 560
   <!-- The eleventh row for method-->
561
  <tr><th colspan="1" align="center"  class="bordered">Method</th>
561
  <tr><th colspan="1" width="{$attributefirstColWidth}"  class="bordered">Method</th>
562 562
   <xsl:for-each select="attribute">
563 563
    <xsl:variable name="index" select="position()"/>
564 564
    <xsl:variable name="stripes">

Also available in: Unified diff