Project

General

Profile

1 553 tao
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matthew Brooke
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-variable.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
<!-- IMPORTANT: IMPORT EML-RESOURCE *AFTER* EML-COVERAGE!!! -->
34
<xsl:import href="eml-settings-2.0.0beta6-@name@.xsl" />
35
<xsl:import href="eml-identifier-2.0.0beta6-@name@.xsl" />
36
37
  <xsl:output method="html" encoding="iso-8859-1"/>
38
39
  <xsl:template match="/">
40
    <html>
41
      <head>
42
        <link rel="stylesheet" type="text/css" href="{$stylePath}/{$qformat}.css" />
43
      <style type="text/css">
44
        @import url(@style-path@/sbclter-advanced.css);
45
      </style>
46
        <script language="JavaScript">
47
          <![CDATA[
48
          function submitform(action,form_ref) {
49
              form_ref.action.value=action;
50
              form_ref.abstractpath.value="";
51
              form_ref.qformat.value="sbclter";
52
              form_ref.submit();
53
          }
54
          function submitform1(action, abstractpath, form_ref) {
55
              form_ref.action.value=action;
56
              form_ref.abstractpath.value=abstractpath;
57
              form_ref.qformat.value="";
58
              form_ref.submit();
59
          }
60
          function submitform2(action, qformat, form_ref) {
61
              form_ref.action.value=action;
62
              form_ref.qformat.value=qformat;
63
              form_ref.abstractpath.value="";
64
              form_ref.submit();
65
          }
66
          ]]>
67
        </script>
68
      </head>
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>Physical Structure Description</h1>
116
                <!--h3>Ecological Metadata Language</h3--><br />
117
              </center>
118
              <table class="tabledefault" width="100%">
119
              <!-- width needed for NN4 - doesn't recognize width in css -->
120
                <!--xsl:apply-templates select="eml-physical/identifier"
121
mode="resource"/-->
122
                <tr>
123
                  <td class="tablehead" colspan="2">Physical Structure:</td>
124
                </tr>
125
                <xsl:apply-templates select="eml-physical/*"/>
126
              </table>
127
            </div>
128
           </td>
129
          </tr>
130
          <tr>
131
            <td colspan="2">
132
              <!--div class="nsf" >This material is based on the upon work
133
              supported by the National Science Foundation under Cooperative
134
              Agreement #OCE-9982105. Any opinions, findings, or recommendations
135
              expressed in the material are those of author(s) and do not
136
              necessarily reflect the view of the National Science Foundation.
137
              </div-->
138
            </td>
139
          </tr>
140
          <tr>
141
            <td class="footer-menu" colspan="2">
142
              <div class="footer-menu">
143
                @footer-menu@
144
              </div>
145
            </td>
146
          </tr>
147
          <tr>
148
            <td class="footer-left">
149
              <div class="footer-left">
150
                @copyright@
151
              </div>
152
            </td>
153
            <td class="footer-right">
154
              <div class="footer-right">
155
               Contact: <a class="footer-link"
156
                        href="@mailto-address@">
157
                        @header-subtitle@data@nceas.ucsb.edu
158
                        </a> |
159
                <a class="footer-link"
160
                   href="@intranet-address@"
161
                   target="offline">Internal Login
162
                </a>
163
              </div>
164
            </td>
165
          </tr>
166
  </table>
167
      </div>
168
     </body>
169
    </html>
170
  </xsl:template>
171
172
173
  <xsl:template match="format">
174
        <tr>
175
        <td class="{$firstColStyle}" width="{$firstColWidth}">File Format</td>
176
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
177
        </tr>
178
  </xsl:template>
179
180
  <xsl:template match="characterEncoding">
181
        <tr>
182
        <td class="{$firstColStyle}" width="{$firstColWidth}">Character Encoding</td>
183
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
184
        </tr>
185
  </xsl:template>
186
187
  <xsl:template match="size">
188
        <tr>
189
        <td class="{$firstColStyle}" width="{$firstColWidth}">Size</td>
190
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/>
191
        <xsl:if test="normalize-space(./@units)!=''">
192
            ( <xsl:value-of select="./@units"/> )
193
        </xsl:if></td>
194
        </tr>
195
  </xsl:template>
196
197
  <xsl:template match="authentication">
198
        <tr>
199
        <td class="{$firstColStyle}" width="{$firstColWidth}">Authentication (checksum value &amp; method)</td>
200
        <td class="{$secondColStyle}" width="{$secondColWidth}">
201
        <xsl:value-of select="."/> (method: <xsl:value-of select="./@method"/>)</td></tr>
202
  </xsl:template>
203
204
  <xsl:template match="compressionMethod">
205
        <tr>
206
        <td class="{$firstColStyle}" width="{$firstColWidth}">Compression Method</td>
207
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
208
        </tr>
209
  </xsl:template>
210
211
  <xsl:template match="encodingMethod">
212
        <tr>
213
        <td class="{$firstColStyle}" width="{$firstColWidth}">Encoding Method</td>
214
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
215
        </tr>
216
  </xsl:template>
217
218
  <xsl:template match="numHeaderLines">
219
        <tr>
220
        <td class="{$firstColStyle}" width="{$firstColWidth}">Number of Header Lines</td>
221
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
222
        </tr>
223
  </xsl:template>
224
225
  <xsl:template match="recordDelimiter">
226
        <tr>
227
        <td class="{$firstColStyle}" width="{$firstColWidth}">Record Delimiter</td>
228
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
229
        </tr>
230
  </xsl:template>
231
232
  <xsl:template match="maxRecordLength">
233
        <tr>
234
        <td class="{$firstColStyle}" width="{$firstColWidth}">Maximum Record Length</td>
235
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
236
        </tr>
237
  </xsl:template>
238
239
  <xsl:template match="quoteCharacter">
240
        <tr>
241
        <td class="{$firstColStyle}" width="{$firstColWidth}">Quote Character</td>
242
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
243
        </tr>
244
  </xsl:template>
245
246
   <xsl:template match="literalCharacter">
247
       <tr>
248
        <td class="{$firstColStyle}" width="{$firstColWidth}">Literal Character</td>
249
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
250
        </tr>
251
  </xsl:template>
252
253
  <xsl:template match="fieldStartColumn">
254
        <tr>
255
        <td class="{$firstColStyle}" width="{$firstColWidth}">Field Start Column</td>
256
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
257
        </tr>
258
  </xsl:template>
259
260
261
  <xsl:template match="fieldDelimiter">
262
        <tr>
263
        <td class="{$firstColStyle}" width="{$firstColWidth}">Field Delimeter</td>
264
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
265
        </tr>
266
  </xsl:template>
267
268
  <xsl:template match="fieldWidth">
269
        <tr><td class="{$firstColStyle}" width="{$firstColWidth}">Field Width</td>
270
        <td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
271
        </tr>
272
  </xsl:template>
273
274
</xsl:stylesheet>