Project

General

Profile

« Previous | Next » 

Revision 1707

Added by Jing Tao about 21 years ago

Revised attribute list.

View differences:

lib/style/eml2/eml-dataset-2.0.0.xsl
322 322
            <td width="{$secondColWidth}" class="{$firstColStyle}">
323 323
             <a><xsl:attribute name="href">
324 324
              <xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&amp;displaymodule=entity&amp;entitytype=<xsl:value-of select="$type"/>&amp;entityindex=<xsl:value-of select="$index"/></xsl:attribute>
325
             <br><xsl:value-of select="./entityName"/> (<xsl:value-of select="$showtype"/>)</br></a>
325
             <b><xsl:value-of select="./entityName"/> (<xsl:value-of select="$showtype"/>)</b></a>
326 326
            </td>
327 327
         </tr> 
328 328
          </xsl:for-each>
......
333 333
            <td width="{$secondColWidth}" class="{$firstColStyle}">
334 334
             <a><xsl:attribute name="href">
335 335
              <xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&amp;displaymodule=entity&amp;entitytype=<xsl:value-of select="$type"/>&amp;entityindex=<xsl:value-of select="$index"/></xsl:attribute>
336
             <br><xsl:value-of select="./entityName"/> (<xsl:value-of select="$showtype"/>)</br></a>
336
             <b><xsl:value-of select="./entityName"/> (<xsl:value-of select="$showtype"/>)</b></a>
337 337
            </td>
338 338
         </tr>
339 339
       </xsl:otherwise>
lib/style/eml2/eml-attribute-2.0.0.xsl
38 38
   <xsl:param name="entitytype"/>
39 39
   <xsl:param name="entityindex"/>
40 40
  
41
   <table xsl:use-attribute-sets="cellspacing" class="border1" width="100%">
41
   <table xsl:use-attribute-sets="cellspacing" class="tableattribute" width="100%">
42 42
        <xsl:choose>
43 43
         <xsl:when test="references!=''">
44 44
          <xsl:variable name="ref_id" select="references"/>
......
92 92
   <xsl:for-each select="attribute">
93 93
    <xsl:variable name="stripes">
94 94
              <xsl:choose>
95
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
95 96
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
96
                <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
97 97
              </xsl:choose>
98 98
    </xsl:variable>
99 99
    <xsl:choose>
......
127 127
      <xsl:variable name="stripes">
128 128
              <xsl:choose>
129 129
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
130
                <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
130
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
131 131
              </xsl:choose>
132 132
      </xsl:variable>
133 133
      <xsl:choose>
......
154 154
     <xsl:for-each select="attribute">
155 155
      <xsl:variable name="stripes">
156 156
              <xsl:choose>
157
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
157 158
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
158
                <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
159 159
              </xsl:choose>
160 160
      </xsl:variable>
161 161
      <xsl:choose>
......
177 177
   </xsl:for-each>
178 178
  </tr>
179 179
  
180
  <!-- The fifth row for meaturementscale-->
181
  <tr><th colspan="1" align="center"  class="bordered">Measurement</th>
180
  <!-- The fifth row for meaturement type-->
181
  <tr><th colspan="1" align="center"  class="bordered">Measurement Type</th>
182 182
   <xsl:for-each select="attribute">
183 183
    <xsl:variable name="stripes">
184 184
              <xsl:choose>
185 185
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
186
                <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
186
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
187 187
              </xsl:choose>
188 188
    </xsl:variable>
189 189
    <xsl:choose>
......
193 193
          <xsl:for-each select="$references">
194 194
            <td colspan="1" align="center" class="{$stripes}">
195 195
              <xsl:for-each select="measurementScale">
196
                 <xsl:value-of select="local-name(./*)"/>
197
              </xsl:for-each>
198
            </td>
199
         </xsl:for-each>
200
        </xsl:when>
201
        <xsl:otherwise>
202
           <td colspan="1" align="center" class="{$stripes}">
203
              <xsl:for-each select="measurementScale">
204
                 <xsl:value-of select="local-name(./*)"/>
205
              </xsl:for-each>
206
           </td>
207
        </xsl:otherwise>
208
     </xsl:choose>
209
   </xsl:for-each>
210
  </tr>
211
  
212
  <!-- The sixth row for meaturement domain-->
213
  <tr><th colspan="1" align="center"  class="bordered">Measurement Domain</th>
214
   <xsl:for-each select="attribute">
215
    <xsl:variable name="stripes">
216
              <xsl:choose>
217
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
218
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
219
              </xsl:choose>
220
    </xsl:variable>
221
    <xsl:choose>
222
         <xsl:when test="references!=''">
223
          <xsl:variable name="ref_id" select="references"/>
224
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
225
          <xsl:for-each select="$references">
226
            <td colspan="1" align="center" class="{$stripes}">
227
              <xsl:for-each select="measurementScale">
196 228
                <xsl:call-template name="measurementscale">
197 229
                    <xsl:with-param name="docid" select="$docid"/>
198 230
                    <xsl:with-param name="entitytype" select="$entitytype"/>
199 231
                    <xsl:with-param name="entityindex" select="$entityindex"/>
200 232
                    <xsl:with-param name="attributeindex" select="position()"/>
233
                    <xsl:with-param name="stripes" select="$stripes"/>
201 234
                </xsl:call-template>
202 235
              </xsl:for-each>
203 236
            </td>
......
211 244
                      <xsl:with-param name="entitytype" select="$entitytype"/>
212 245
                      <xsl:with-param name="entityindex" select="$entityindex"/>
213 246
                      <xsl:with-param name="attributeindex" select="position()"/>
247
                      <xsl:with-param name="stripes" select="$stripes"/>
214 248
                </xsl:call-template>
215 249
              </xsl:for-each>
216 250
           </td>
......
220 254
  </tr>
221 255

  
222 256
 
223
  <!-- The sixth row for missing value code-->
257
  <!-- The seventh row for missing value code-->
224 258
  <tr><th colspan="1" align="center"  class="bordered">Missing Value Code</th>
225 259
    <xsl:for-each select="attribute">
226 260
      <xsl:variable name="stripes">
227 261
         <xsl:choose>
228 262
            <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
229
            <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
263
            <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
230 264
         </xsl:choose>
231 265
     </xsl:variable>
232 266
     <xsl:choose>
......
235 269
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
236 270
          <xsl:for-each select="$references">
237 271
            <td colspan="1" align="center" class="{$stripes}">
238
              <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
272
              <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
239 273
                <xsl:for-each select="missingValueCode">
240
                 <tr><td width="20%"><b>Code</b></td>
241
                       <td width="80%"><xsl:value-of select="code"/></td></tr>
242
                  <tr><td width="20%"><b>Explanation</b></td>
243
                       <td width="80%"><xsl:value-of select="codeExplanation"/></td>
274
                 <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Code</b></td>
275
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="code"/></td></tr>
276
                  <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Explanation</b></td>
277
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="codeExplanation"/></td>
244 278
                  </tr>
245 279
               </xsl:for-each>
246 280
             </table>
......
249 283
        </xsl:when>
250 284
        <xsl:otherwise>
251 285
           <td colspan="1" align="center" class="{$stripes}">
252
             <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
286
             <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
253 287
                <xsl:for-each select="missingValueCode">
254
                 <tr><td width="20%"><b>Code</b></td>
255
                       <td width="80%"><xsl:value-of select="code"/></td></tr>
256
                  <tr><td width="20%"><b>Explanation</b></td>
257
                       <td width="80%"><xsl:value-of select="codeExplanation"/></td>
288
                 <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Code</b></td>
289
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="code"/></td></tr>
290
                  <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Explanation</b></td>
291
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="codeExplanation"/></td>
258 292
                  </tr>
259 293
               </xsl:for-each>
260 294
             </table>
......
265 299
  </tr>
266 300
 
267 301
 
268
  <!-- The seventh row for accuracy -->
269
  <tr><th colspan="1" align="center"  class="bordered">Accuracy &#160;</th>
302
  <!-- The eighth row for accuracy report-->
303
  <tr><th colspan="1" align="center"  class="bordered">Accuracy Report</th>
270 304
     <xsl:for-each select="attribute">
271 305
     <xsl:variable name="stripes">
272 306
         <xsl:choose>
273 307
             <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
274
             <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
308
             <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
275 309
         </xsl:choose>
276 310
    </xsl:variable>
277 311
    <xsl:choose>
......
281 315
          <xsl:for-each select="$references">
282 316
            <td colspan="1" align="center" class="{$stripes}">
283 317
              <xsl:for-each select="accuracy">
284
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
285
                  <tr><td width="{$firstColWidth}"><b>Report</b></td>
286
                       <td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyReport"/>
287
                       </td>
288
                  </tr>
318
                <xsl:value-of select="attributeAccuracyReport"/>
319
              </xsl:for-each>
320
            </td>
321
          </xsl:for-each>
322
        </xsl:when>
323
        <xsl:otherwise>
324
           <td colspan="1" align="center" class="{$stripes}">
325
              <xsl:for-each select="accuracy">
326
                <xsl:value-of select="attributeAccuracyReport"/>
327
             </xsl:for-each>
328
           </td>
329
        </xsl:otherwise>
330
     </xsl:choose>
331
  </xsl:for-each>
332
  </tr>
333
  
334
  <!-- The nineth row for quality accuracy accessment -->
335
  <tr><th colspan="1" align="center"  class="bordered">Accuracy Assessment</th>
336
     <xsl:for-each select="attribute">
337
     <xsl:variable name="stripes">
338
         <xsl:choose>
339
             <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
340
             <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
341
         </xsl:choose>
342
    </xsl:variable>
343
    <xsl:choose>
344
         <xsl:when test="references!=''">
345
          <xsl:variable name="ref_id" select="references"/>
346
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
347
          <xsl:for-each select="$references">
348
            <td colspan="1" align="center" class="{$stripes}">
349
              <xsl:for-each select="accuracy">
350
               <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
289 351
                  <xsl:for-each select="quantitativeAttributeAccuracyAssessment">
290
                    <tr><td width="{$firstColWidth}"><b>Value</b></td>
291
                       <td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyValue"/></td>
352
                    <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Value</b></td>
353
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="attributeAccuracyValue"/></td>
292 354
                    </tr>
293
                    <tr><td width="{$firstColWidth}"><b>Explanation</b></td>
294
                       <td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyExplanation"/></td>
355
                    <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Explanation</b></td>
356
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="attributeAccuracyExplanation"/></td>
295 357
                    </tr>
296 358
                  </xsl:for-each>
297 359
               </table>
......
302 364
        <xsl:otherwise>
303 365
           <td colspan="1" align="center" class="{$stripes}">
304 366
              <xsl:for-each select="accuracy">
305
               <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
306
                  <tr><td width="{$firstColWidth}"><b>Report</b></td>
307
                       <td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyReport"/>
308
                       </td>
309
                  </tr>
310
                  <xsl:for-each select="quantitativeAttributeAccuracyAssessment">
311
                    <tr><td width="{$firstColWidth}"><b>Value</b></td>
312
                       <td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyValue"/></td>
367
                 <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
368
                   <xsl:for-each select="quantitativeAttributeAccuracyAssessment">
369
                    <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Value</b></td>
370
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="attributeAccuracyValue"/></td>
313 371
                    </tr>
314
                    <tr><td width="{$firstColWidth}"><b>Explanation</b></td>
315
                       <td width="{$secondColWidth}"><xsl:value-of select="attributeAccuracyExplanation"/></td>
372
                    <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Explanation</b></td>
373
                       <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="attributeAccuracyExplanation"/></td>
316 374
                    </tr>
317 375
                  </xsl:for-each>
318
               </table>
376
                </table>
319 377
             </xsl:for-each>
320 378
           </td>
321 379
        </xsl:otherwise>
......
323 381
  </xsl:for-each>
324 382
  </tr>
325 383
  
326
   <!-- The eigth row for coverage-->
384
   <!-- The tenth row for coverage-->
327 385
  <tr><th colspan="1" align="center"  class="bordered">Coverage</th>
328 386
   <xsl:for-each select="attribute">
329 387
    <xsl:variable name="stripes">
330 388
              <xsl:choose>
389
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
331 390
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
332
                <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
333 391
              </xsl:choose>
334 392
    </xsl:variable>
335 393
    <xsl:choose>
......
361 419
  </tr>
362 420
  
363 421

  
364
   <!-- The nineth row for method-->
422
   <!-- The eleventh row for method-->
365 423
  <tr><th colspan="1" align="center"  class="bordered">Method</th>
366 424
   <xsl:for-each select="attribute">
367 425
    <xsl:variable name="stripes">
368 426
              <xsl:choose>
427
                <xsl:when test="position() mod 2 = 0">coleven</xsl:when>
369 428
                <xsl:when test="position() mod 2 = 1">colodd</xsl:when>
370
                <xsl:when test="position() mod 2 = 0">highlight</xsl:when>
371 429
              </xsl:choose>
372 430
    </xsl:variable>
373 431
    <xsl:choose>
......
400 458
 </xsl:template>
401 459
 
402 460
 <xsl:template name="measurementscale">
461
   <xsl:param name="stripes"/>
403 462
   <xsl:param name="docid"/>
404 463
   <xsl:param name="entitytype"/>
405 464
   <xsl:param name="entityindex"/>
406 465
   <xsl:param name="attributeindex"/>
407
   <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
466
   <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
408 467
    <xsl:for-each select="nominal">
409
       <tr><td colspan="2" align="center"><b>Nominal</b></td></tr>
410
       <xsl:call-template name="attributenonnumericdomain">
468
         <xsl:call-template name="attributenonnumericdomain">
411 469
               <xsl:with-param name="docid" select="$docid"/>
412 470
               <xsl:with-param name="entitytype" select="$entitytype"/>
413 471
               <xsl:with-param name="entityindex" select="$entityindex"/>
414 472
               <xsl:with-param name="attributeindex" select="$attributeindex"/>
473
               <xsl:with-param name="stripes" select="$stripes"/>
415 474
       </xsl:call-template>
416 475
    </xsl:for-each>
417 476
    <xsl:for-each select="ordinal">
418
       <tr><td colspan="2" align="center"><b>Ordinal</b></td></tr>
419 477
       <xsl:call-template name="attributenonnumericdomain">
420 478
               <xsl:with-param name="docid" select="$docid"/>
421 479
               <xsl:with-param name="entitytype" select="$entitytype"/>
422 480
               <xsl:with-param name="entityindex" select="$entityindex"/>
423 481
               <xsl:with-param name="attributeindex" select="$attributeindex"/>
482
               <xsl:with-param name="stripes" select="$stripes"/>
424 483
       </xsl:call-template>
425 484
    </xsl:for-each>
426 485
    <xsl:for-each select="interval">
427
       <tr><td colspan="2" align="center"><b>Interval</b></td></tr>
428 486
       <xsl:call-template name="intervalratio">
487
         <xsl:with-param name="stripes" select="$stripes"/>
429 488
       </xsl:call-template>
430 489
    </xsl:for-each>
431 490
    <xsl:for-each select="ratio">
432
       <tr><td colspan="2" align="center"><b>Ratio</b></td></tr>
433 491
       <xsl:call-template name="intervalratio">
492
         <xsl:with-param name="stripes" select="$stripes"/>
434 493
       </xsl:call-template>
435 494
    </xsl:for-each>
436 495
    <xsl:for-each select="datetime">
437
       <tr><td colspan="2" align="center"><b>Time</b></td></tr>
438 496
       <xsl:call-template name="datetime">
497
          <xsl:with-param name="stripes" select="$stripes"/>
439 498
       </xsl:call-template>
440 499
    </xsl:for-each>
441 500
   </table>
442 501
 </xsl:template>
443 502
 
444 503
 <xsl:template name="attributenonnumericdomain">
504
   <xsl:param name="stripes"/>
445 505
   <xsl:param name="docid"/>
446 506
   <xsl:param name="entitytype"/>
447 507
   <xsl:param name="entityindex"/>
......
457 517
                <xsl:with-param name="entitytype" select="$entitytype"/>
458 518
                <xsl:with-param name="entityindex" select="$entityindex"/>
459 519
                <xsl:with-param name="attributeindex" select="$attributeindex"/>
520
                <xsl:with-param name="stripes" select="$stripes"/>
460 521
            </xsl:call-template>
461 522
         </xsl:for-each>
462 523
        </xsl:when>
......
466 527
               <xsl:with-param name="entitytype" select="$entitytype"/>
467 528
               <xsl:with-param name="entityindex" select="$entityindex"/>
468 529
               <xsl:with-param name="attributeindex" select="$attributeindex"/>
530
               <xsl:with-param name="stripes" select="$stripes"/>
469 531
            </xsl:call-template>
470 532
        </xsl:otherwise>
471 533
     </xsl:choose>
......
473 535
 </xsl:template>
474 536
 
475 537
 <xsl:template name="attributenonnumericdomaincommon">
538
    <xsl:param name="stripes"/>
476 539
    <xsl:param name="docid"/>
477 540
    <xsl:param name="entitytype"/>
478 541
    <xsl:param name="entityindex"/>
......
481 544
        it will be displayed inline otherwith will be show a link-->
482 545
    <xsl:choose>
483 546
      <xsl:when test="count(textDomain)=1 and not(enumeratedDomain)">
484
        <tr><td width="{$firstColWidth}"><b>Definition</b></td>
485
            <td width="{$secondColWidth}"><xsl:value-of select="textDomain/definition"/>
547
        <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Definition</b></td>
548
            <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="textDomain/definition"/>
486 549
            </td>
487 550
        </tr>
488 551
        <xsl:for-each select="textDomain/parttern">
489
          <tr><td width="{$firstColWidth}"><b>Pattern</b></td>
490
            <td width="{$secondColWidth}"><xsl:value-of select="."/>
552
          <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Pattern</b></td>
553
            <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="."/>
491 554
            </td>
492 555
          </tr>
493 556
        </xsl:for-each>
494 557
        <xsl:for-each select="textDomain/source">
495
          <tr><td width="{$firstColWidth}"><b>Source</b></td>
496
            <td width="{$secondColWidth}"><xsl:value-of select="."/>
558
          <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Source</b></td>
559
            <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="."/>
497 560
            </td>
498 561
          </tr>
499 562
        </xsl:for-each>
500 563
      </xsl:when>
501 564
      <xsl:otherwise>
502
         <tr><td colspan="2" align="center">
565
         <tr><td colspan="2" align="center" class="{$stripes}" >
503 566
           <a><xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>&amp;displaymodule=attributedomain&amp;entitytype=<xsl:value-of select="$entitytype"/>&amp;entityindex=<xsl:value-of select="$entityindex"/>&amp;attributeindex=<xsl:value-of select="$attributeindex"/></xsl:attribute>
504 567
           <b>Domain Info</b></a>
505 568
         </td></tr>
......
508 571
 </xsl:template>
509 572
 
510 573
 <xsl:template name="intervalratio">
574
    <xsl:param name="stripes"/>
511 575
    <xsl:if test="unit/standardUnit">
512
      <tr><td width="{$firstColWidth}"><b>Standard Unit</b></td>
513
            <td width="{$secondColWidth}"><xsl:value-of select="unit/standardUnit"/>
576
      <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Unit</b></td>
577
            <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="unit/standardUnit"/>
514 578
            </td>
515 579
      </tr>
516 580
    </xsl:if>
517 581
    <xsl:if test="unit/customUnit">
518
      <tr><td width="{$firstColWidth}"><b>Custom Unit</b></td>
519
            <td width="{$secondColWidth}"><xsl:value-of select="unit/customUnit"/>
582
      <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Unit</b></td>
583
            <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="unit/customUnit"/>
520 584
            </td>
521 585
      </tr>
522 586
   </xsl:if>
523 587
   <xsl:for-each select="precision">
524
      <tr><td width="{$firstColWidth}"><b>Precision</b></td>
525
            <td width="{$secondColWidth}"><xsl:value-of select="."/>
588
      <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Precision</b></td>
589
            <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="."/>
526 590
            </td>
527 591
      </tr>
528 592
   </xsl:for-each>
529 593
   <xsl:for-each select="numericDomain">
530
       <tr><td width="{$firstColWidth}"><b>Numeric</b></td>
531
            <td width="{$secondColWidth}">
532
             <xsl:call-template name="numericDomain"/>
594
       <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Numeric</b></td>
595
            <td width="{$secondColWidth}" class="{$stripes}">
596
             <xsl:call-template name="numericDomain">
597
               <xsl:with-param name="stripes" select="$stripes"/>
598
             </xsl:call-template>
533 599
          </td>
534 600
      </tr>
535 601
   </xsl:for-each>
......
537 603
  
538 604
  
539 605
 <xsl:template name="numericDomain">
540
     <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
606
     <xsl:param name="stripes"/>
607
     <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
541 608
        <xsl:choose>
542 609
         <xsl:when test="references!=''">
543 610
          <xsl:variable name="ref_id" select="references"/>
544 611
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
545 612
          <xsl:for-each select="$references">
546
            <tr><td width="{$firstColWidth}">Type</td>
547
                <td width="{$secondColWidth}"><xsl:value-of select="numberType"/>
613
            <tr><td width="{$firstColWidth}" class="{$stripes}">Type</td>
614
                <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="numberType"/>
548 615
                </td>
549 616
            </tr>
550 617
            <xsl:for-each select="bounds">
551
              <tr><td width="{$firstColWidth}">Min</td>
552
                  <td width="{$secondColWidth}">
618
              <tr><td width="{$firstColWidth}" class="{$stripes}">Min</td>
619
                  <td width="{$secondColWidth}" class="{$stripes}">
553 620
                    <xsl:for-each select="minimum">
554 621
                      <xsl:value-of select="."/>&#160;
555 622
                    </xsl:for-each>
556 623
                  </td>
557 624
              </tr>
558
              <tr><td width="{$firstColWidth}">Max</td>
559
                  <td width="{$secondColWidth}">
625
              <tr><td width="{$firstColWidth}" class="{$stripes}">Max</td>
626
                  <td width="{$secondColWidth}" class="{$stripes}">
560 627
                    <xsl:for-each select="maximum">
561 628
                      <xsl:value-of select="."/>&#160;
562 629
                    </xsl:for-each>
......
566 633
          </xsl:for-each>
567 634
        </xsl:when>
568 635
        <xsl:otherwise>
569
          <tr><td width="{$firstColWidth}">Type</td>
570
                <td width="{$secondColWidth}"><xsl:value-of select="numberType"/>
636
          <tr><td width="{$firstColWidth}" class="{$stripes}">Type</td>
637
                <td width="{$secondColWidth}" class="{$stripes}"><xsl:value-of select="numberType"/>
571 638
                </td>
572 639
            </tr>
573 640
            <xsl:for-each select="bounds">
574
              <tr><td width="{$firstColWidth}">Min</td>
575
                  <td width="{$secondColWidth}">
641
              <tr><td width="{$firstColWidth}" class="{$stripes}">Min</td>
642
                  <td width="{$secondColWidth}" class="{$stripes}">
576 643
                    <xsl:for-each select="minimum">
577 644
                      <xsl:value-of select="."/>&#160;
578 645
                    </xsl:for-each>
579 646
                  </td>
580 647
              </tr>
581
              <tr><td width="{$firstColWidth}">Max</td>
582
                  <td width="{$secondColWidth}">
648
              <tr><td width="{$firstColWidth}" class="{$stripes}">Max</td>
649
                  <td width="{$secondColWidth}" class="{$stripes}">
583 650
                    <xsl:for-each select="maximum">
584 651
                      <xsl:value-of select="."/>&#160;
585 652
                    </xsl:for-each>
......
592 659
 </xsl:template>
593 660
 
594 661
 <xsl:template name="datetime">
595
    <tr><td width="{$firstColWidth}"><b>String Format</b></td>
596
         <td width="{$secondColWidth}">
662
    <xsl:param name="stripes"/>
663
    <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Format</b></td>
664
         <td width="{$secondColWidth}" class="{$stripes}">
597 665
            <xsl:value-of select="formatString"/>      
598 666
         </td>
599 667
    </tr>
600
     <tr><td width="{$firstColWidth}"><b>Precision</b></td>
601
         <td width="{$secondColWidth}">
668
     <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Precision</b></td>
669
         <td width="{$secondColWidth}" class="{$stripes}">
602 670
            <xsl:value-of select="dateTimePrecision"/>        
603 671
         </td>
604 672
    </tr>
605
     <tr><td width="{$firstColWidth}"><b>Domain</b></td>
606
         <td width="{$secondColWidth}">
673
     <tr><td width="{$firstColWidth}" class="{$stripes}"><b>Domain</b></td>
674
         <td width="{$secondColWidth}" class="{$stripes}">
607 675
           <xsl:call-template name="timedomain"/>     
608 676
         </td>
609 677
    </tr>
......
611 679
 
612 680
 
613 681
 <xsl:template name="timedomain">
614
    <table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
682
    <xsl:param name="stripes"/>
683
    <table xsl:use-attribute-sets="cellspacing" class="tableinattribute" width="100%">
615 684
        <xsl:choose>
616 685
         <xsl:when test="references!=''">
617 686
          <xsl:variable name="ref_id" select="references"/>
618 687
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
619 688
          <xsl:for-each select="$references">
620 689
            <xsl:for-each select="bounds">
621
              <tr><td width="{$firstColWidth}">Min</td>
622
                  <td width="{$secondColWidth}">
690
              <tr><td width="{$firstColWidth}" class="{$stripes}">Min</td>
691
                  <td width="{$secondColWidth}" class="{$stripes}">
623 692
                    <xsl:for-each select="minimum">
624 693
                      <xsl:value-of select="."/>&#160;
625 694
                    </xsl:for-each>
626 695
                  </td>
627 696
              </tr>
628
              <tr><td width="{$firstColWidth}">Max</td>
629
                  <td width="{$secondColWidth}">
697
              <tr><td width="{$firstColWidth}" class="{$stripes}">Max</td>
698
                  <td width="{$secondColWidth}" class="{$stripes}">
630 699
                    <xsl:for-each select="maximum">
631 700
                      <xsl:value-of select="."/>&#160;
632 701
                    </xsl:for-each>
......
637 706
        </xsl:when>
638 707
        <xsl:otherwise>
639 708
           <xsl:for-each select="bounds">
640
              <tr><td width="{$firstColWidth}">Min</td>
641
                  <td width="{$secondColWidth}">
709
              <tr><td width="{$firstColWidth}" class="{$stripes}">Min</td>
710
                  <td width="{$secondColWidth}" class="{$stripes}">
642 711
                    <xsl:for-each select="minimum">
643 712
                      <xsl:value-of select="."/>&#160;
644 713
                    </xsl:for-each>
645 714
                  </td>
646 715
              </tr>
647
              <tr><td width="{$firstColWidth}">Max</td>
648
                  <td width="{$secondColWidth}">
716
              <tr><td width="{$firstColWidth}" class="{$stripes}">Max</td>
717
                  <td width="{$secondColWidth}" class="{$stripes}">
649 718
                    <xsl:for-each select="maximum">
650 719
                      <xsl:value-of select="."/>&#160;
651 720
                    </xsl:for-each>
lib/style/knb.css
58 58
    color: black;
59 59
    width: 100%;
60 60
    font-size: 1em;
61
   
62
    
63 61
    }
62
.tableattribute {
63
    width: 100%;
64
    font-size: 1em;
65
    border-width: 0.2em;
66
    border-style: solid;
67
    border-color: #eeeeee;
68
    }
69
.tableinattribute{
70
    width: 100%;
71
    font-size: 1em;
72
    }
64 73
.tableparty {
65 74
    background: white;
66 75
    color: black;
......
190 199
    font-size: 1em;
191 200
    }
192 201
.bordered {
193
        background-color: #ccccff;/*#94cff7;#9CC2D3;*/
194
        padding: 4px;
195
        border: 1px solid #91B5C4;
196
        color: #006699;
202
        background-color: #ccccff;
203
        border-collapse: collapse;
204
        border-width: 0.05em;
205
        border-color: white;
206
        border-style: solid;
207
        padding-left: 0.4em;
208
        padding-top: 0.1em;
209
        padding-bottom: 0.1em;
197 210
}
198 211
.coleven {
199 212
    background: #EFFAFF;
213
    border-collapse: collapse;
214
        border-width: 0.05em;
215
        border-color: white;
216
        border-style: solid;
217
        padding-left: 0.4em;
218
        padding-top: 0.1em;
219
        padding-bottom: 0.1em;
200 220
    }
201 221

  
202 222
.colodd {
203
    background:#ffffff ;
223
    background: #dddddd;
224
    border-collapse: collapse;
225
        border-width: 0.05em;
226
        border-color: white;
227
        border-style: solid;
228
        padding-left: 0.4em;
229
        padding-top: 0.1em;
230
        padding-bottom: 0.1em;
231
   
204 232
    }

Also available in: Unified diff