Project

General

Profile

« Previous | Next » 

Revision 39

creating display stylesheet for eml-variable

View differences:

xsqltest/eml-variable.xsql
13 13
  * to cause an XSLT (http://www.w3.org/TR/xslt) stylesheet transformation
14 14
  * for an XML document
15 15
-->
16
<?xml-stylesheet type="text/xsl" href="eml-variable-display.xsl"?>
17 16
<xsql:include-xml href="eml-variable.xml" xmlns:xsql="urn:oracle-xsql"/>
xsqltest/eml-variable-sort.xsl
1
<!--
2
  * eml-variable-sort.xsl
3
  *
4
  *      Authors: Matt Jones
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *      Created: 2000 April 5
9
  *    File Info: '$Id$'
10
  *
11
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
12
  * convert an XML file that is valid with respect to the eml-variable.dtd
13
  * module of the Ecological Metadata Language (EML) into an HTML format
14
  * suitable for rendering with modern web browsers. It implements the sorting
15
  * routines for this function.
16
  *
17
  ***                                                                       ***
18
  *** WARNING: THIS stylesheet was written for an early version if Internet ***
19
  *** Explorer 5, and DOES NOT COMPLY with the W3C XSLT standard.           ***
20
  ***                                                                       ***
21
-->
1 22
<xsl:template xmlns:xsl="http://www.w3.org/TR/WD-xsl">
2 23
  <xsl:apply-templates select="eml_variable">
3 24
    <xsl:template><xsl:copy><xsl:apply-templates select="@*"/><xsl:apply-templates/></xsl:copy></xsl:template>
xsqltest/rowcol.css
1 1
 .page    {font-family: Tahoma, sans-serif; background-color:white}
2
 .eml-dataset    {font-family: Tahoma, sans-serif; background-color:white}
3
 .rowodd  {background-color: #DDDDDD; color: black; vertical-align: top}
2
 .emlbody    {font-family: Tahoma, sans-serif; background-color:white}
3
 .rowodd  {background-color: #CCCCCC; color: black; vertical-align: top}
4 4
 .roweven {background-color: #F8F8F8; color: black; vertical-align: top}
5
 .rowlight {background-color: #CCCCFF; color: black; vertical-align: top}
6
 .rowwhite {background-color: #FFFFFF; color: black; vertical-align: top}
5 7
 .coleven {}
6 8
 .colodd  {}
7 9
 .shaded  {background-color: #DDDDDD; color: black}
xsqltest/eml-variable.xml
1 1
<?xml version="1.0"?>
2
<!DOCTYPE eml_variable>
2
<!DOCTYPE eml-variable>
3 3
<!-- '$Id$' -->
4 4
<!-- eml document for the NCEAS working group entitled:
5 5
         Intrinsic and Extrinsic Variability in Community Dynamics
6 6
          MODULE 4b - CLASS IVb - DATA VARIABLE DESCRIPTORS           
7 7
--> 
8
<eml_variable>   
9
   <meta_file_id mdatt="junk">NCEAS-0002-variable.xml</meta_file_id>
8
<eml-variable>   
9
   <meta_file_id>NCEAS-0002-variable.xml</meta_file_id>
10 10
   <variable>
11 11
     <variable_name>site</variable_name>
12 12
     <variable_definition>site name</variable_definition>
13
     <storage_type>character</storage_type></variable>
14
     <codedef>
15
        <code>99</code>
16
        <def>Error in the super console</def>
17
     </codedef>
13
     <storage_type>character</storage_type>
14
     <code_definition>
15
        <code>LMR</code>
16
        <definition>Lake Mary Ridge site</definition>
17
     </code_definition>
18
     <code_definition>
19
        <code>PPA</code>
20
        <definition>Piute Pass site</definition>
21
     </code_definition>
22
     <code_definition>
23
        <code>HSM</code>
24
        <definition>Horseshoe Meadow site</definition>
25
     </code_definition>
26
     <missing_value_code>.</missing_value_code>
27
     <field_format>
28
       <fixed_width><field_width>4</field_width></fixed_width>
29
     </field_format>
30
   </variable>
18 31
   <variable>
19 32
     <variable_name>lakename</variable_name>
20 33
     <variable_definition>lake name</variable_definition>
......
23 36
   <variable>
24 37
     <variable_name>year</variable_name>
25 38
     <variable_definition>year of data collection, in 19YY format</variable_definition>
39
     <unit>year</unit>
26 40
     <storage_type>integer</storage_type>
41
     <numeric_range>
42
       <minimum>1900</minimum>
43
       <maximum>2050</maximum>
44
     </numeric_range>
45
     <field_format><variable_width><delimiter>,</delimiter></variable_width></field_format>
27 46
   </variable>
28
   <variable attrib1="this is an att">
47
   <variable>
29 48
     <variable_name>plankton</variable_name>
30 49
     <variable_definition>number of plankton in samples for that year</variable_definition>
50
     <unit>individuals</unit>
31 51
     <storage_type>integer</storage_type>
52
     <numeric_range>
53
       <minimum>0</minimum>
54
       <maximum>10000</maximum>
55
     </numeric_range>
56
     <missing_value_code>.</missing_value_code>
57
     <precision>3</precision>
32 58
   </variable>
33
</eml_variable> 
59
</eml-variable> 
xsqltest/eml-dataset-display.xsl
24 24
      <head>
25 25
	<link rel="stylesheet" type="text/css" href="./rowcol.css" />
26 26
      </head>
27
      <body class="eml-dataset">
27
      <body class="emlbody">
28 28
	<center>
29 29
          <h1>Data set description</h1>
30 30
          <h3>Ecological Metadata Language</h3>
xsqltest/eml-variable-display.xsl
1 1
<?xml version="1.0"?>
2
<!--
3
  * eml-variable-display.xsl
4
  *
5
  *      Authors: Matt Jones
6
  *    Copyright: 2000 Regents of the University of California and the
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *      Created: 2000 April 5
10
  *    File Info: '$Id$'
11
  * 
12
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
13
  * convert an XML file that is valid with respect to the eml-variable.dtd
14
  * module of the Ecological Metadata Language (EML) into an HTML format
15
  * suitable for rendering with modern web browsers.
16
  *
17
  ***                                                                       ***
18
  *** WARNING: THIS stylesheet was written for an early version if Internet ***
19
  *** Explorer 5, and DOES NOT COMPLY with the W3C XSLT standard.           ***
20
  ***                                                                       ***
21
-->
2 22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 23
<HTML>
4 24
  <HEAD>
......
11 31
    </STYLE>
12 32
    <XML id="eml_variable">
13 33
      <xsl:apply-templates select="eml_variable">
14
        <xsl:template><xsl:copy><xsl:apply-templates select="@*"/><xsl:apply-templates/></xsl:copy></xsl:template>
34
        <xsl:template>
35
          <xsl:copy>
36
            <xsl:apply-templates select="@*"/>
37
            <xsl:apply-templates/>
38
          </xsl:copy>
39
        </xsl:template>
15 40
      </xsl:apply-templates>
16 41
    </XML>
17 42
    <XML id="sorted"><xsl:eval/></XML>
lib/style/eml-dataset-display.xsl
24 24
      <head>
25 25
	<link rel="stylesheet" type="text/css" href="./rowcol.css" />
26 26
      </head>
27
      <body class="eml-dataset">
27
      <body class="emlbody">
28 28
	<center>
29 29
          <h1>Data set description</h1>
30 30
          <h3>Ecological Metadata Language</h3>
lib/style/eml-variable-display.xsl
1 1
<?xml version="1.0"?>
2
<!--
3
  * eml-variable-display.xsl
4
  *
5
  *      Authors: Matt Jones
6
  *    Copyright: 2000 Regents of the University of California and the
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *      Created: 2000 April 5
10
  *    File Info: '$Id$'
11
  * 
12
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
13
  * convert an XML file that is valid with respect to the eml-variable.dtd
14
  * module of the Ecological Metadata Language (EML) into an HTML format
15
  * suitable for rendering with modern web browsers.
16
  *
17
  ***                                                                       ***
18
  *** WARNING: THIS stylesheet was written for an early version if Internet ***
19
  *** Explorer 5, and DOES NOT COMPLY with the W3C XSLT standard.           ***
20
  ***                                                                       ***
21
-->
2 22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 23
<HTML>
4 24
  <HEAD>
......
11 31
    </STYLE>
12 32
    <XML id="eml_variable">
13 33
      <xsl:apply-templates select="eml_variable">
14
        <xsl:template><xsl:copy><xsl:apply-templates select="@*"/><xsl:apply-templates/></xsl:copy></xsl:template>
34
        <xsl:template>
35
          <xsl:copy>
36
            <xsl:apply-templates select="@*"/>
37
            <xsl:apply-templates/>
38
          </xsl:copy>
39
        </xsl:template>
15 40
      </xsl:apply-templates>
16 41
    </XML>
17 42
    <XML id="sorted"><xsl:eval/></XML>

Also available in: Unified diff