Project

General

Profile

« Previous | Next » 

Revision 1651

Added by Jing Tao over 21 years ago

Revise the entity module.

View differences:

lib/style/eml2/eml-entity-2.0.0.xsl
30 30
  * suitable for rendering with modern web browsers.
31 31
-->
32 32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33
  <xsl:import href="eml-identifier-2.0.0beta6-@name@.xsl" />
34
  <xsl:import href="eml-coverage-2.0.0beta6-@name@.xsl" />
33
 
35 34

  
36 35
  <xsl:output method="html" encoding="iso-8859-1"/>
36
  <!-- This module only provide some templates. They can be called by other templates-->
37 37

  
38
  <xsl:template match="/">
39
  <html>
40
    <head>
41
        <link rel="stylesheet" type="text/css" href="{$stylePath}/@name@.css" />
42
      <style type="text/css">
43
        @import url(@style-path@/sbclter-advanced.css);
44
      </style>
45
        <script language="JavaScript">
46
          <![CDATA[
47
          function submitform(action,form_ref) {
48
              form_ref.action.value=action;
49
              form_ref.abstractpath.value="";
50
              form_ref.qformat.value="sbclter";
51
              form_ref.submit();
52
          }
53
          function submitform1(action, abstractpath, form_ref) {
54
              form_ref.action.value=action;
55
              form_ref.abstractpath.value=abstractpath;
56
              form_ref.qformat.value="";
57
              form_ref.submit();
58
          }
59
          function submitform2(action, qformat, form_ref) {
60
              form_ref.action.value=action;
61
              form_ref.qformat.value=qformat;
62
              form_ref.abstractpath.value="";
63
              form_ref.submit();
64
          }
65
          ]]>
66
        </script>
67
    </head>
68 38

  
69
    <body>
70
      <!--<div class="header-logo">
71
        <img src="/catalog/img/catalog/sbclter-logo.gif" alt="SBC LTER" border="0" />
72
      </div>-->
73
      <div class="spacing" align="center">
74
        <table cellspacing="0" width="100%" border="0">
75
          <tr>
76
            <td class="header-title">
77
              <div class="header-title">
78
                @header-title@
79
              </div>
80
               <div class="header-subtitle">
81
                @header-subtitle@
82
              </div>
83
            </td>
84
            <td class="header-image" rowspan="1">
85
              <div class="header-image">
86
                <img class="header" src="@html-path@/@header-image@"
87
                  alt="@header-image-alt@"
88
                   border="0" />
89
              </div>
90
            </td>
91
          </tr>
92
          <tr>
93
            <td class="header-menu" colspan="2">
94
              <div class="header-menu">
95
                @header-menu@
96
              </div>
97
            </td>
98
          </tr>
99
          <tr>
100
            <td class="header-submenu" colspan="2">
101
              <div class="header-submenu">
102
                &#160; <!-- &nbsp; that is XML compliant -->
103
              </div>
104
            </td>
105
          </tr>
106
        </table>
107
      </div>
108
      <div class="content-spacing" align="center">
109
        <table cellspacing="0" width="100%" height="100%" border="0">
110
          <tr>
111
           <td class="content-area" colspan="2">
112
           <!-- END SBCLTER PAGE TOP HTML -->
113
             <div class="content-area">
114
               <center>
115
                 <h1>Table structure description</h1>
116
                 <!--h3>Ecological Metadata Language</h3-->
117
               </center>
118
               <table class="tabledefault" width="100%">
119
               <!-- width needed for NN4 - doesn't recognize width in css -->
120
                 <!--xsl:apply-templates select="table-entity/identifier" mode="resource"/-->
121
                 <tr class="{$subHeaderStyle}">
122
                   <td class="{$subHeaderStyle}" colspan="2">Table Information:</td>
123
                 </tr>
124
                 <xsl:apply-templates select="table-entity/entityName"/>
125
                 <xsl:apply-templates select="table-entity/entityDescription"/>
126
                 <xsl:apply-templates select="table-entity/caseSensitive"/>
127
                 <xsl:apply-templates select="table-entity/numberOfRecords"/>
128
                 <xsl:apply-templates select="table-entity/orientation"/>
129
                 <xsl:if test="table-entity/temporalCov">
130
                   <xsl:apply-templates select="table-entity/temporalCov"/>
131
                 </xsl:if>
132
                 <xsl:if test="table-entity/geographicCov">
133
                   <xsl:apply-templates select="table-entity/geographicCov"/>
134
                 </xsl:if>
135
                 <xsl:if test="table-entity/taxonomicCov">
136
                   <xsl:apply-templates select="table-entity/taxonomicCov"/>
137
                 </xsl:if>
138
               </table>
139
             </div>
140
           </td>
141
          </tr>
142
         <tr>
143
            <td colspan="2">
144
              <!--div class="nsf" >This material is based on the upon work
145
              supported by the National Science Foundation under Cooperative
146
              Agreement #OCE-9982105. Any opinions, findings, or recommendations
147
              expressed in the material are those of author(s) and do not
148
              necessarily reflect the view of the National Science Foundation.
149
              </div-->
150
            </td>
151
          </tr>
152
          <tr>
153
            <td class="footer-menu" colspan="2">
154
              <div class="footer-menu">
155
                @footer-menu@
156
              </div>
157
            </td>
158
          </tr>
159
          <tr>
160
            <td class="footer-left">
161
              <div class="footer-left">
162
                @copyright@
163
              </div>
164
            </td>
165
            <td class="footer-right">
166
              <div class="footer-right">
167
               Contact: <a class="footer-link"
168
                        href="@mailto-address@">
169
                        @header-subtitle@data@nceas.ucsb.edu
170
                        </a> |
171
                <a class="footer-link"
172
                   href="@intranet-address@"
173
                   target="offline">Internal Login
174
                </a>
175
              </div>
176
            </td>
177
          </tr>
178
        </table>
179
      </div>
180
    </body>
181
    </html>
182
  </xsl:template>
183

  
184
  <xsl:template match="entityName">
185
    <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
39
  <xsl:template name="entityName">
40
    <xsl:param name="entityfirstColStyle"/>
41
    <tr><td width="{$firstColWidth}" class="{$entityfirstColStyle}">
186 42
    Name:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
187 43
    <b><xsl:value-of select="."/></b></td></tr>
188 44
  </xsl:template>
189

  
190
  <xsl:template match="entityDescription">
191
        <xsl:if test="../entityDescription and normalize-space(../entityDescription)!=''">
192
            <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
193
            Description:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
45
  
46
  <xsl:template name="entityalternateIdentifier">
47
     <xsl:param name="entityfirstColStyle"/>
48
     <tr><td width="{$firstColWidth}" class="{$entityfirstColStyle}">
49
            Identifier:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
194 50
            <xsl:value-of select="."/></td></tr>
195
        </xsl:if>
196 51
  </xsl:template>
52
  
53
  <xsl:template name="entityDescription">
54
      <xsl:param name="entityfirstColStyle"/> 
55
      <tr><td width="{$firstColWidth}" class="{$entityfirstColStyle}">
56
      Description:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
57
      <xsl:value-of select="."/></td></tr>
58
  </xsl:template>
59
  
60
  <xsl:template name="entityadditionalInfo">
61
      <xsl:param name="entityfirstColStyle"/> 
62
      <tr><td width="{$firstColWidth}" class="{$entityfirstColStyle}">
63
      Additional Info:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
64
      <xsl:value-of select="."/></td></tr>
65
  </xsl:template>
66
  
197 67

  
198 68
  <xsl:template match="caseSensitive">
199 69
        <xsl:if test="../caseSensitive and normalize-space(../caseSensitive/@yesorno)!=''">
......
211 81
        </xsl:if>
212 82
  </xsl:template>
213 83

  
214
  <xsl:template match="orientation">
215
    <xsl:if test="(../orientation)">
216
      <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
217
          Orientation:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
218
      <xsl:if test="normalize-space(@columnorrow)='columnmajor'">
219
        <xsl:text>Column-major</xsl:text>
220
      </xsl:if>
221
      <xsl:if test="normalize-space(@columnorrow)='rownmajor'">
222
        <xsl:text>Row-major</xsl:text>
223
      </xsl:if></td></tr>
224
    </xsl:if>
225
  </xsl:template>
84
  
226 85

  
227 86
</xsl:stylesheet>

Also available in: Unified diff