Project

General

Profile

1 553 tao
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Jivka Bojilova
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
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-file.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
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" />
35
36
  <xsl:output method="html" encoding="iso-8859-1"/>
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
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}">
186
    Name:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
187
    <b><xsl:value-of select="."/></b></td></tr>
188
  </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}">
194
            <xsl:value-of select="."/></td></tr>
195
        </xsl:if>
196
  </xsl:template>
197
198
  <xsl:template match="caseSensitive">
199
        <xsl:if test="../caseSensitive and normalize-space(../caseSensitive/@yesorno)!=''">
200
            <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
201
            Case Sensitive?:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
202
            <xsl:value-of select="./@yesorno"/></td></tr>
203
        </xsl:if>
204
  </xsl:template>
205
206
  <xsl:template match="numberOfRecords">
207
        <xsl:if test="../numberOfRecords and normalize-space(../numberOfRecords)!=''">
208
            <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
209
            Number Of Records:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
210
            <xsl:value-of select="."/></td></tr>
211
        </xsl:if>
212
  </xsl:template>
213
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>
226
227
</xsl:stylesheet>