Project

General

Profile

« Previous | Next » 

Revision 4823

Added by daigle over 15 years ago

Create an eml 2.1.0 shared directory. Move skin specific xsl directives into sbclter directory: sbclter-eml-2.0.0.xsl and sbclter-eml-2.1.0.xsl

View differences:

lib/style/shared/eml-2.1.0/eml-resource.xsl
1
<?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: cjones $'
10
  *     '$Date: 2006-11-17 13:37:07 -0800 (Fri, 17 Nov 2006) $'
11
  * '$Revision: 3094 $'
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
  <!--<xsl:import href="eml-party.xsl"/>
34
  <xsl:import href="eml-distribution.xsl"/>
35
  <xsl:import href="eml-coverage.xsl"/>-->
36
  <xsl:output method="html" encoding="iso-8859-1"
37
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
38
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
39
    indent="yes" />  
40

  
41
  <!-- This module is for resouce and it is self-contained (it is table)-->
42
  <xsl:template name="resource">
43
    <xsl:param name="resfirstColStyle"/>
44
    <xsl:param name="ressubHeaderStyle"/>
45
    <xsl:param name="creator">Data Set Owner(s):</xsl:param>
46

  
47
      <!--
48
      <xsl:for-each select="alternateIdentifier">
49
        <xsl:call-template name="resourcealternateIdentifier">
50
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
51
        </xsl:call-template>
52
      </xsl:for-each>
53

  
54
      <xsl:for-each select="shortName">
55
        <xsl:call-template name="resourceshortName">
56
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
57
         </xsl:call-template>
58
      </xsl:for-each>
59

  
60
      <xsl:for-each select="title">
61
        <xsl:call-template name="resourcetitle">
62
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
63
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
64
        </xsl:call-template>
65
      </xsl:for-each>
66

  
67
       <xsl:for-each select="pubDate">
68
        <xsl:call-template name="resourcepubDate" >
69
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
70
         </xsl:call-template>
71
      </xsl:for-each>
72

  
73
      <xsl:for-each select="language">
74
        <xsl:call-template name="resourcelanguage" >
75
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
76
         </xsl:call-template>
77
      </xsl:for-each>
78

  
79
      <xsl:for-each select="series">
80
        <xsl:call-template name="resourceseries" >
81
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
82
        </xsl:call-template>
83
      </xsl:for-each>
84

  
85
      <xsl:if test="creator">
86
        <tr>
87
          <td class="{$ressubHeaderStyle}" colspan="2">
88
            <h3><xsl:value-of select="$creator"/></h3>
89
          </td>
90
        </tr>
91
      </xsl:if>
92
      <xsl:for-each select="creator">
93
        <xsl:call-template name="resourcecreator">
94
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
95
        </xsl:call-template>
96
      </xsl:for-each>
97

  
98
      <xsl:if test="metadataProvider">
99
        <tr><td class="{$ressubHeaderStyle}" colspan="2">
100
        <xsl:text>Metadata Provider(s):</xsl:text>
101
      </td></tr>
102
      </xsl:if>
103
       <xsl:for-each select="metadataProvider">
104
        <xsl:call-template name="resourcemetadataProvider">
105
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
106
        </xsl:call-template>
107
      </xsl:for-each>
108

  
109
      <xsl:if test="associatedParty">
110
        <tr>
111
          <td class="{$ressubHeaderStyle}" colspan="2">
112
            <h3><xsl:text>Associated Parties:</xsl:text></h3>
113
          </td>
114
        </tr>
115
      </xsl:if>
116
      <xsl:for-each select="associatedParty">
117
        <xsl:call-template name="resourceassociatedParty">
118
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
119
        </xsl:call-template>
120
      </xsl:for-each>
121

  
122
      <xsl:for-each select="abstract">
123
        <xsl:call-template name="resourceabstract" >
124
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
125
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
126
        </xsl:call-template>
127
      </xsl:for-each>
128

  
129
      <xsl:if test="keywordSet">
130
        <tr><td class="{$ressubHeaderStyle}" colspan="2">
131
             <xsl:text>Keywords:</xsl:text></td></tr>
132
      </xsl:if>
133
      <xsl:for-each select="keywordSet">
134
        <xsl:call-template name="resourcekeywordSet" >
135
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
136
        </xsl:call-template>
137
      </xsl:for-each>
138

  
139
      <xsl:for-each select="additionalInfo">
140
        <xsl:call-template name="resourceadditionalInfo" >
141
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
142
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
143
        </xsl:call-template>
144
      </xsl:for-each>
145

  
146
      <xsl:for-each select="intellectualRights">
147
        <xsl:call-template name="resourceintellectualRights" >
148
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
149
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
150
        </xsl:call-template>
151
      </xsl:for-each>
152

  
153
      <xsl:for-each select="distribution">
154
        <xsl:call-template name="resourcedistribution">
155
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
156
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
157
          <xsl:with-param name="index" select="position()"/>
158
          <xsl:with-param name="docid" select="$docid"/>
159
        </xsl:call-template>
160
      </xsl:for-each>
161

  
162
    <xsl:for-each select="coverage">
163
      <xsl:call-template name="resourcecoverage">
164
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
165
          <xsl:with-param name="ressubHeaderStyle" select="$ressubHeaderStyle"/>
166
      </xsl:call-template>
167
    </xsl:for-each>
168
    -->
169

  
170
  </xsl:template>
171

  
172
  <!-- style the alternate identifier elements -->
173
  <xsl:template name="resourcealternateIdentifier" >
174
      <xsl:param name="resfirstColStyle"/>
175
      <xsl:param name="ressecondColStyle"/>
176
      <xsl:if test="normalize-space(.)!=''">
177
      <tr>
178
        <td class="{$resfirstColStyle}">Alternate Identifier:</td>
179
        <td class="{$ressecondColStyle}"><xsl:value-of select="."/></td>
180
      </tr>
181
      </xsl:if>
182
  </xsl:template>
183

  
184

  
185
  <!-- style the short name elements -->
186
  <xsl:template name="resourceshortName">
187
      <xsl:param name="resfirstColStyle"/>
188
      <xsl:param name="ressecondColStyle"/>
189
      <xsl:if test="normalize-space(.)!=''">
190
      <tr>
191
        <td class="{$resfirstColStyle}">Short Name:</td>
192
        <td class="{$ressecondColStyle}"><xsl:value-of select="."/></td>
193
      </tr>
194
      </xsl:if>
195
  </xsl:template>
196

  
197

  
198
  <!-- style the title element -->
199
  <xsl:template name="resourcetitle" >
200
      <xsl:param name="resfirstColStyle"/>
201
      <xsl:param name="ressecondColStyle"/>
202
      <xsl:if test="normalize-space(.)!=''">
203
      <tr>
204
        <td class="{$resfirstColStyle}">Title:</td>
205
        <td class="{$ressecondColStyle}">
206
          <em class="bold"><xsl:value-of select="."/></em>
207
        </td>
208
      </tr>
209
      </xsl:if>
210
  </xsl:template>
211

  
212
  <xsl:template name="resourcecreator" >
213
      <xsl:param name="resfirstColStyle"/>
214
      <tr><td colspan="2">
215
       <xsl:call-template name="party">
216
              <xsl:with-param name="partyfirstColStyle" select="$resfirstColStyle"/>
217
       </xsl:call-template>
218
      </td></tr>
219
   </xsl:template>
220

  
221
  <xsl:template name="resourcemetadataProvider" >
222
      <xsl:param name="resfirstColStyle"/>
223
      <tr><td colspan="2">
224
      <xsl:call-template name="party">
225
            <xsl:with-param name="partyfirstColStyle" select="$resfirstColStyle"/>
226
      </xsl:call-template>
227
      </td></tr>
228
  </xsl:template>
229

  
230
  <xsl:template name="resourceassociatedParty">
231
      <xsl:param name="resfirstColStyle"/>
232
      <tr><td colspan="2">
233
      <xsl:call-template name="party">
234
          <xsl:with-param name="partyfirstColStyle" select="$resfirstColStyle"/>
235
      </xsl:call-template>
236
      </td></tr>
237
  </xsl:template>
238

  
239

  
240
  <xsl:template name="resourcepubDate">
241
      <xsl:param name="resfirstColStyle"/>
242
      <xsl:if test="normalize-space(../pubDate)!=''">
243
      <tr><td class="{$resfirstColStyle}">
244
        Publication Date:</td><td class="{$secondColStyle}">
245
        <xsl:value-of select="../pubDate"/></td></tr>
246
      </xsl:if>
247
  </xsl:template>
248

  
249

  
250
  <xsl:template name="resourcelanguage">
251
      <xsl:param name="resfirstColStyle"/>
252
      <xsl:if test="normalize-space(.)!=''">
253
      <tr><td class="{$resfirstColStyle}">
254
        Language:</td><td class="{$secondColStyle}">
255
        <xsl:value-of select="."/></td></tr>
256
      </xsl:if>
257
  </xsl:template>
258

  
259

  
260
  <xsl:template name="resourceseries">
261
      <xsl:param name="resfirstColStyle"/>
262
      <xsl:if test="normalize-space(../series)!=''">
263
      <tr><td class="{$resfirstColStyle}">
264
        Series:</td><td class="{$secondColStyle}">
265
        <xsl:value-of select="../series"/></td></tr>
266
      </xsl:if>
267
  </xsl:template>
268

  
269

  
270
  <xsl:template name="resourceabstract">
271
     <xsl:param name="resfirstColStyle"/>
272
     <xsl:param name="ressecondColStyle"/>
273
     <tr>
274
       <td class="{$resfirstColStyle}"><xsl:text>Abstract:</xsl:text></td>
275
       <td>
276
         <xsl:call-template name="text">
277
           <xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/>
278
           <xsl:with-param name="textsecondColStyle" select="$ressecondColStyle"/>
279
         </xsl:call-template>
280
       </td>
281
     </tr>
282
  </xsl:template>
283

  
284

  
285
  <!--<xsl:template match="keywordSet[1]" mode="resource">
286
        <xsl:param name="ressubHeaderStyle"/>
287
        <xsl:param name="resfirstColStyle"/>
288
        <tr><td class="{$ressubHeaderStyle}" colspan="2">
289
        <xsl:text>Keywords:</xsl:text></td></tr>
290
        <xsl:call-template name="renderKeywordSet">
291
          <xsl:with-param name="resfirstColStyle" select="$resfirstColStyle"/>
292
        </xsl:call-template>
293
  </xsl:template>-->
294

  
295
  <xsl:template name="resourcekeywordSet">
296
      <xsl:for-each select="keywordThesaurus">
297
        <xsl:if test="normalize-space(.)!=''">
298
          <xsl:value-of select="."/>
299
          <xsl:text>: </xsl:text>
300
        </xsl:if>
301
        <xsl:if test="normalize-space(keyword)!=''">
302
        <ul>
303
          <xsl:for-each select="keyword">
304
            <li><xsl:value-of select="."/>
305
            <xsl:if test="./@keywordType and normalize-space(./@keywordType)!=''">
306
              (<xsl:value-of select="./@keywordType"/>)
307
            </xsl:if>
308
            </li>
309
          </xsl:for-each>
310
        </ul>
311
        </xsl:if>
312
      </xsl:for-each>
313
        <xsl:if test="normalize-space(keyword)!=''">
314
        <ul>
315
          <xsl:for-each select="keyword">
316
            <li><xsl:value-of select="."/>
317
            <xsl:if test="./@keywordType and normalize-space(./@keywordType)!=''">
318
              (<xsl:value-of select="./@keywordType"/>)
319
            </xsl:if>
320
            </li>
321
          </xsl:for-each>
322
        </ul>
323
        </xsl:if>
324
  </xsl:template>
325

  
326
   <xsl:template name="resourceadditionalInfo">
327
     <xsl:param name="ressubHeaderStyle"/>
328
     <xsl:param name="resfirstColStyle"/>
329
     <tr><td class="{$ressubHeaderStyle}" colspan="2">
330
        <xsl:text>Additional Information:</xsl:text>
331
     </td></tr>
332
     <tr><td class="{$resfirstColStyle}">&#160;</td>
333
         <td>
334
           <xsl:call-template name="text">
335
             <xsl:with-param name="textfirstColStyle" select="$resfirstColStyle"/>
336
           </xsl:call-template>
337
         </td>
338
     </tr>
339
  </xsl:template>
340

  
341

  
342
   <xsl:template name="resourceintellectualRights">
343
     <xsl:param name="resfirstColStyle"/>
344
     <xsl:param name="ressecondColStyle"/>
345
       <xsl:call-template name="text">
346
         <xsl:with-param name="textsecondColStyle" select="$ressecondColStyle"/>
347
       </xsl:call-template>
348
  </xsl:template>
349

  
350
   <xsl:template name="resourcedistribution">
351
     <xsl:param name="ressubHeaderStyle"/>
352
     <xsl:param name="resfirstColStyle"/>
353
     <xsl:param name="index"/>
354
     <xsl:param name="docid"/>
355
     <tr><td colspan="2">
356
        <xsl:call-template name="distribution">
357
          <xsl:with-param name="disfirstColStyle" select="$resfirstColStyle"/>
358
          <xsl:with-param name="dissubHeaderStyle" select="$ressubHeaderStyle"/>
359
          <xsl:with-param name="level">toplevel</xsl:with-param>
360
          <xsl:with-param name="distributionindex" select="$index"/>
361
          <xsl:with-param name="docid" select="$docid"/>
362
        </xsl:call-template>
363
     </td></tr>
364
  </xsl:template>
365

  
366
  <xsl:template name="resourcecoverage">
367
     <xsl:param name="ressubHeaderStyle"/>
368
     <xsl:param name="resfirstColStyle"/>
369
     <tr><td colspan="2">
370
        <xsl:call-template name="coverage">
371
        </xsl:call-template>
372
     </td></tr>
373
  </xsl:template>
374

  
375

  
376
</xsl:stylesheet>
0 377

  
lib/style/shared/eml-2.0.0/eml.xsl
56 56
  <xsl:import href="eml-storedprocedure.xsl"/>
57 57
  <xsl:import href="eml-text.xsl"/>
58 58
  <xsl:import href="eml-view.xsl"/>
59
  <xsl:import href="./style/skins/default/templates/xsl/pageheader.xsl"/>
60
  <xsl:import href="./style/skins/default/templates/xsl/pagefooter.xsl"/>
61
  <xsl:import href="./style/skins/default/templates/xsl/page_leftsidebar.xsl"/>
62
  <xsl:import href="./style/skins/default/templates/xsl/page_rightsidebar.xsl"/>
63
  <xsl:import href="./style/skins/default/templates/xsl/page_rightsidebar.xsl"/>
64 59

  
65 60
  <xsl:output method="html" encoding="iso-8859-1"
66 61
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
......
69 64
  <!-- global variables to store id node set in case to be referenced-->
70 65
  <xsl:variable name="ids" select="//*[@id!='']"/>
71 66

  
72
  <xsl:template match="/">
73
    <html>
74
      <head>
75
        <link rel="stylesheet" type="text/css"
76
              href="{$stylePath}/{$qformat}/{$qformat}.css" />
77
      </head>
78
      <body>
79
        <!-- begin the header area -->
80
        <xsl:call-template name="pageheader" />
81
        <!-- end the header area -->
82
   
83
        <!-- begin the left sidebar area -->
84
        <xsl:call-template name="page_leftsidebar" />
85
        <!-- end the left sidebar area -->
86
   
87
        <!-- begin the content area -->
88
        <div id="{$mainTableAligmentStyle}">
89
          <xsl:apply-templates select="*[local-name()='eml']"/>
90
        </div>
91
        <!-- end the content area -->
92
   
93
        <!-- begin the right sidebar area -->
94
        <xsl:call-template name="page_rightsidebar" />
95
        <!-- end the right sidebar area -->
96

  
97
        <!-- begin the footer area -->
98
        <xsl:call-template name="pagefooter" />
99
        <!-- end the footer area -->
100
      </body>
101
    </html>
102
   </xsl:template>
103

  
104 67
   <xsl:template match="*[local-name()='eml']">
105 68
     <xsl:for-each select="dataset">
106 69
       <xsl:call-template name="emldataset"/>
lib/style/shared/eml-2.1.0/eml-party.xsl
1
<?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: cjones $'
10
  *     '$Date: 2006-11-17 13:37:07 -0800 (Fri, 17 Nov 2006) $'
11
  * '$Revision: 3094 $'
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

  
34
  <xsl:output method="html" encoding="iso-8859-1"
35
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
36
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
37
              indent="yes" />  
38

  
39
  <!-- This module is for party member and it is self contained-->
40

  
41
  <xsl:template name="party">
42
      <xsl:param name="partyfirstColStyle"/>
43
      <table class="{$tabledefaultStyle}">
44
        <xsl:choose>
45
         <xsl:when test="references!=''">
46
          <xsl:variable name="ref_id" select="references"/>
47
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
48
          <xsl:for-each select="$references">
49
            <xsl:apply-templates mode="party">
50
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
51
            </xsl:apply-templates>
52
          </xsl:for-each>
53
        </xsl:when>
54
        <xsl:otherwise>
55
          <xsl:apply-templates mode="party">
56
            <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
57
          </xsl:apply-templates>
58
        </xsl:otherwise>
59
      </xsl:choose>
60
      </table>
61
  </xsl:template>
62

  
63
  <!-- *********************************************************************** -->
64

  
65

  
66
  <xsl:template match="individualName" mode="party">
67
      <xsl:param name="partyfirstColStyle"/>
68
      <xsl:if test="normalize-space(.)!=''">
69
        <tr><td class="{$partyfirstColStyle}" >
70
            Individual:</td><td class="{$secondColStyle}" >
71
           <b><xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
72
           <xsl:value-of select="./givenName"/><xsl:text> </xsl:text>
73
           <xsl:value-of select="./surName"/></b>
74
        </td></tr>
75
      </xsl:if>
76
  </xsl:template>
77

  
78

  
79
  <xsl:template match="organizationName" mode="party">
80
      <xsl:param name="partyfirstColStyle"/>
81
      <xsl:if test="normalize-space(.)!=''">
82
        <tr><td class="{$partyfirstColStyle}" >
83
        Organization:</td><td class="{$secondColStyle}">
84
        <b><xsl:value-of select="."/></b>
85
        </td></tr>
86
      </xsl:if>
87
  </xsl:template>
88

  
89

  
90
  <xsl:template match="positionName" mode="party">
91
      <xsl:param name="partyfirstColStyle"/>
92
      <xsl:if test="normalize-space(.)!=''">
93
      <tr><td class="{$partyfirstColStyle}">
94
        Position:</td><td class="{$secondColStyle}">
95
        <xsl:value-of select="."/></td></tr>
96
      </xsl:if>
97
  </xsl:template>
98

  
99

  
100
  <xsl:template match="address" mode="party">
101
    <xsl:param name="partyfirstColStyle"/>
102
    <xsl:if test="normalize-space(.)!=''">
103
      <xsl:call-template name="addressCommon">
104
         <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
105
      </xsl:call-template>
106
    </xsl:if>
107
    </xsl:template>
108

  
109
   <!-- This template will be call by other place-->
110
   <xsl:template name="address">
111
      <xsl:param name="partyfirstColStyle"/>
112
      <table class="{$tablepartyStyle}">
113
        <xsl:choose>
114
         <xsl:when test="references!=''">
115
          <xsl:variable name="ref_id" select="references"/>
116
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
117
          <xsl:for-each select="$references">
118
            <xsl:call-template name="addressCommon">
119
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
120
            </xsl:call-template>
121
          </xsl:for-each>
122
        </xsl:when>
123
        <xsl:otherwise>
124
          <xsl:call-template name="addressCommon">
125
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
126
          </xsl:call-template>
127
        </xsl:otherwise>
128
      </xsl:choose>
129
      </table>
130
  </xsl:template>
131

  
132
   <xsl:template name="addressCommon">
133
    <xsl:param name="partyfirstColStyle"/>
134
    <xsl:if test="normalize-space(.)!=''">
135
    <tr><td class="{$partyfirstColStyle}">
136
        Address:</td><td>
137
    <table class="{$tablepartyStyle}">
138
    <xsl:for-each select="deliveryPoint">
139
    <tr><td class="{$secondColStyle}"><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
140
    </xsl:for-each>
141
    <!-- only include comma if city exists... -->
142
    <tr><td class="{$secondColStyle}" >
143
    <xsl:if test="normalize-space(city)!=''">
144
        <xsl:value-of select="city"/><xsl:text>, </xsl:text>
145
    </xsl:if>
146
    <xsl:if test="normalize-space(administrativeArea)!='' or normalize-space(postalCode)!=''">
147
        <xsl:value-of select="administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="postalCode"/><xsl:text> </xsl:text>
148
    </xsl:if>
149
    <xsl:if test="normalize-space(country)!=''">
150
      <xsl:value-of select="country"/>
151
    </xsl:if></td></tr>
152
    </table></td></tr>
153
    </xsl:if>
154
   </xsl:template>
155

  
156
  <xsl:template match="phone" mode="party">
157
      <xsl:param name="partyfirstColStyle"/>
158
      <tr><td class="{$partyfirstColStyle}" >
159
             Phone:
160
          </td>
161
          <td>
162
            <table class="{$tablepartyStyle}">
163
              <tr><td class="{$secondColStyle}">
164
                     <xsl:value-of select="."/>
165
                     <xsl:if test="normalize-space(./@phonetype)!=''">
166
                       <xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text>
167
                     </xsl:if>
168
                   </td>
169
               </tr>
170
             </table>
171
          </td>
172
      </tr>
173
  </xsl:template>
174

  
175

  
176
  <xsl:template match="electronicMailAddress" mode="party">
177
      <xsl:param name="partyfirstColStyle"/>
178
      <xsl:if test="normalize-space(.)!=''">
179
       <tr><td class="{$partyfirstColStyle}" >
180
            Email Address:
181
          </td>
182
          <td>
183
            <table class="{$tablepartyStyle}">
184
              <tr><td class="{$secondColStyle}">
185
                    <a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/>
186
                    <xsl:value-of select="."/></a>
187
                   </td>
188
              </tr>
189
            </table>
190
          </td>
191
        </tr>
192
      </xsl:if>
193
  </xsl:template>
194

  
195

  
196
  <xsl:template match="onlineUrl" mode="party">
197
      <xsl:param name="partyfirstColStyle"/>
198
      <xsl:if test="normalize-space(.)!=''">
199
      <tr><td class="{$partyfirstColStyle}" >
200
            Web Address:
201
          </td>
202
          <td>
203
             <table class="{$tablepartyStyle}">
204
               <tr><td class="{$secondColStyle}">
205
                     <a><xsl:attribute name="href">http://<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/>
206
                     <xsl:value-of select="."/></a>
207
                    </td>
208
               </tr>
209
             </table>
210
           </td>
211
        </tr>
212
      </xsl:if>
213
  </xsl:template>
214

  
215

  
216
  <xsl:template match="userId" mode="party">
217
      <xsl:param name="partyfirstColStyle"/>
218
      <xsl:if test="normalize-space(.)!=''">
219
      <tr><td class="{$partyfirstColStyle}" >
220
        Id:</td><td class="{$secondColStyle}">
221
        <xsl:value-of select="."/></td></tr>
222
      </xsl:if>
223
  </xsl:template>
224
  <xsl:template match="text()" mode="party" />
225
</xsl:stylesheet>
0 226

  
lib/style/shared/eml-2.1.0/eml-coverage.xsl
1
<?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: cjones $'
10
  *     '$Date: 2006-11-17 13:37:07 -0800 (Fri, 17 Nov 2006) $'
11
  * '$Revision: 3094 $'
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

  
33
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
34
  <xsl:import href="eml-literature.xsl"/>
35

  
36
  <xsl:output method="html" encoding="iso-8859-1"
37
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
38
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
39
    indent="yes" />  
40

  
41
  <!-- This module is for coverage and it is self contained(It is a table
42
       and will handle reference by it self)-->
43
  <xsl:template name="coverage">
44
        <xsl:choose>
45
         <xsl:when test="references!=''">
46
          <xsl:variable name="ref_id" select="references"/>
47
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
48
          <xsl:for-each select="$references">
49
          <table class="{$tabledefaultStyle}">
50
            <xsl:for-each select="geographicCoverage">
51
                <xsl:call-template name="geographicCoverage">
52
                </xsl:call-template>
53
            </xsl:for-each>
54
          </table>
55
          <table class="{$tabledefaultStyle}">
56
             <xsl:for-each select="temporalCoverage">
57
                <xsl:call-template name="temporalCoverage">
58
                </xsl:call-template>
59
            </xsl:for-each>
60
          </table>
61
          <table class="{$tabledefaultStyle}">
62
            <xsl:for-each select="taxonomicCoverage">
63
                <xsl:call-template name="taxonomicCoverage">
64
                </xsl:call-template>
65
            </xsl:for-each>
66
          </table>
67
          </xsl:for-each>
68
        </xsl:when>
69
        <xsl:otherwise>
70
          <table class="{$tabledefaultStyle}">
71
            <xsl:for-each select="geographicCoverage">
72
                <xsl:call-template name="geographicCoverage">
73
                </xsl:call-template>
74
            </xsl:for-each>
75
          </table>
76
          <table class="{$tabledefaultStyle}">
77
            <xsl:for-each select="temporalCoverage">
78
                <xsl:call-template name="temporalCoverage">
79
                </xsl:call-template>
80
            </xsl:for-each>
81
          </table>
82
          <table class="{$tabledefaultStyle}">
83
            <xsl:for-each select="taxonomicCoverage">
84
                <xsl:call-template name="taxonomicCoverage">
85
                </xsl:call-template>
86
            </xsl:for-each>
87
          </table>
88
        </xsl:otherwise>
89
      </xsl:choose>
90
  </xsl:template>
91

  
92
 <!-- ********************************************************************* -->
93
 <!-- **************  G E O G R A P H I C   C O V E R A G E  ************** -->
94
 <!-- ********************************************************************* -->
95
  <xsl:template name="geographicCoverage">
96
    <xsl:choose>
97
      <xsl:when test="references!=''">
98
        <xsl:variable name="ref_id" select="references"/>
99
        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
100
        <xsl:for-each select="$references">
101
          <xsl:for-each select="geographicCoverage">
102
            <table class="{$tabledefaultStyle}">
103
              <xsl:call-template name="geographicCovCommon" />
104
            </table>
105
          </xsl:for-each>
106
        </xsl:for-each>
107
      </xsl:when>
108
      <xsl:otherwise>
109
          <table class="{$tabledefaultStyle}">
110
            <xsl:call-template name="geographicCovCommon" />
111
          </table>
112
      </xsl:otherwise>
113
    </xsl:choose>
114
  </xsl:template>
115

  
116
  <xsl:template name="geographicCovCommon">
117
      <tr>
118
        <th colspan="2">
119
          <xsl:text>Geographic Region:</xsl:text>
120
        </th>
121
      </tr>
122
      <xsl:apply-templates select="geographicDescription"/>
123
      <xsl:apply-templates select="boundingCoordinates"/>
124
      <xsl:for-each select="datasetGPolygon">
125
          <xsl:if test="datasetGPolygonOuterGRing">
126
            <xsl:apply-templates select="datasetGPolygonOuterGRing"/>
127
          </xsl:if>
128
          <xsl:if test="datasetGPolygonExclusionGRing">
129
              <xsl:apply-templates select="datasetGPolygonExclusionGRing"/>
130
          </xsl:if>
131
     </xsl:for-each>
132
  </xsl:template>
133

  
134
  <xsl:template match="geographicDescription">
135
    <tr>
136
      <td class="{$firstColStyle}">Geographic Description:</td>
137
      <td class="{$secondColStyle}"><xsl:value-of select="."/></td>
138
    </tr>
139
  </xsl:template>
140

  
141
  <xsl:template match="boundingCoordinates">
142
      <tr><td class="{$firstColStyle}">
143
           Bounding Coordinates:
144
          </td>
145
       <td>
146
         <table>
147
           <xsl:apply-templates select="westBoundingCoordinate"/>
148
           <xsl:apply-templates select="eastBoundingCoordinate"/>
149
           <xsl:apply-templates select="northBoundingCoordinate"/>
150
           <xsl:apply-templates select="southBoundingCoordinate"/>
151
           <xsl:apply-templates select="boundingAltitudes"/>
152
         </table>
153
      </td>
154
      </tr>
155
  </xsl:template>
156

  
157
  <xsl:template match="westBoundingCoordinate">
158
    <tr><td class="{$firstColStyle}">
159
         <xsl:text>West: &#160;</xsl:text>
160
        </td>
161
        <td class="{$secondColStyle}">
162
         <xsl:value-of select="."/>&#160; degrees
163
        </td>
164
     </tr>
165
  </xsl:template>
166

  
167
  <xsl:template match="eastBoundingCoordinate">
168
    <tr><td class="{$firstColStyle}">
169
       <xsl:text>East: &#160;</xsl:text>
170
       </td>
171
       <td class="{$secondColStyle}">
172
         <xsl:value-of select="."/>&#160; degrees
173
       </td>
174
     </tr>
175
  </xsl:template>
176

  
177
  <xsl:template match="northBoundingCoordinate">
178
    <tr><td class="{$firstColStyle}">
179
         <xsl:text>North: &#160;</xsl:text>
180
        </td>
181
        <td class="{$secondColStyle}">
182
          <xsl:value-of select="."/>&#160; degrees
183
        </td>
184
     </tr>
185
  </xsl:template>
186

  
187
  <xsl:template match="southBoundingCoordinate">
188
    <tr><td class="{$firstColStyle}">
189
         <xsl:text>South: &#160;</xsl:text>
190
       </td>
191
       <td class="{$secondColStyle}">
192
         <xsl:value-of select="."/>&#160; degrees
193
        </td>
194
    </tr>
195
  </xsl:template>
196

  
197

  
198
  <xsl:template match="boundingAltitudes">
199

  
200
      <tr><td class="{$firstColStyle}">
201
        Mimimum Altitude:</td><td class="{$secondColStyle}">
202
        <xsl:apply-templates select="altitudeMinimum"/></td></tr>
203
      <tr><td class="{$firstColStyle}">
204
        Maximum Altitude:</td><td class="{$secondColStyle}">
205
        <xsl:apply-templates select="altitudeMaximum"/></td></tr>
206

  
207
  </xsl:template>
208

  
209
  <xsl:template match="altitudeMinimum">
210
     <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
211
  </xsl:template>
212

  
213
  <xsl:template match="altitudeMaximum">
214
    <xsl:value-of select="."/> &#160;<xsl:value-of select="../altitudeUnits"/>
215
  </xsl:template>
216

  
217
  <xsl:template match="datasetGPolygonOuterGRing">
218
    <tr><td class="{$firstColStyle}">
219
          <xsl:text>G-Ploygon(Outer Ring): </xsl:text>
220
        </td>
221
        <td class="{$secondColStyle}">
222
           <xsl:apply-templates select="gRingPoint"/>
223
           <xsl:apply-templates select="gRing"/>
224
        </td>
225
     </tr>
226
  </xsl:template>
227

  
228
  <xsl:template match="datasetGPolygonExclusionGRing">
229
    <tr><td class="{$firstColStyle}">
230
          <xsl:text>G-Ploygon(Exclusion Ring): </xsl:text>
231
        </td>
232
        <td class="{$secondColStyle}">
233
           <xsl:apply-templates select="gRingPoint"/>
234
           <xsl:apply-templates select="gRing"/>
235
        </td>
236
     </tr>
237
  </xsl:template>
238

  
239
  <xsl:template match="gRing">
240
    <xsl:text>(GRing) &#160;</xsl:text>
241
    <xsl:text>Latitude: </xsl:text>
242
    <xsl:value-of select="gRingLatitude"/>,
243
    <xsl:text>Longitude: </xsl:text>
244
    <xsl:value-of select="gRingLongitude"/><br/>
245
  </xsl:template>
246

  
247
  <xsl:template match="gRingPoint">
248
    <xsl:text>Latitude: </xsl:text>
249
    <xsl:value-of select="gRingLatitude"/>,
250
    <xsl:text>Longitude: </xsl:text>
251
    <xsl:value-of select="gRingLongitude"/><br/>
252
  </xsl:template>
253

  
254
<!-- ********************************************************************* -->
255
<!-- ****************  T E M P O R A L   C O V E R A G E  **************** -->
256
<!-- ********************************************************************* -->
257

  
258
  <xsl:template name="temporalCoverage">
259
    <xsl:choose>
260
      <xsl:when test="references!=''">
261
        <xsl:variable name="ref_id" select="references"/>
262
        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
263
        <xsl:for-each select="$references">
264
          <table class="{$tabledefaultStyle}">
265
            <xsl:call-template name="temporalCovCommon" />
266
          </table>
267
        </xsl:for-each>
268
      </xsl:when>
269
      <xsl:otherwise>
270
          <table class="{$tabledefaultStyle}">
271
            <xsl:call-template name="temporalCovCommon" />
272
          </table>
273
      </xsl:otherwise>
274
    </xsl:choose>
275
  </xsl:template>
276

  
277
  <xsl:template name="temporalCovCommon" >
278
     <tr><th colspan="2">
279
      <xsl:text>Time Period:</xsl:text></th></tr>
280
      <xsl:apply-templates select="singleDateTime"/>
281
      <xsl:apply-templates select="rangeOfDates"/>
282
  </xsl:template>
283

  
284
  <xsl:template match="singleDateTime">
285
    <tr><td class="{$firstColStyle}">
286
            Date:
287
         </td>
288
         <td>
289
             <xsl:call-template name="singleDateType" />
290
         </td>
291
     </tr>
292
   </xsl:template>
293

  
294
  <xsl:template match="rangeOfDates">
295
     <tr><td class="{$firstColStyle}">
296
            Begin:
297
         </td>
298
         <td>
299
            <xsl:apply-templates select="beginDate"/>
300
          </td>
301
     </tr>
302

  
303
     <tr><td class="{$firstColStyle}">
304
            End:
305
          </td>
306
          <td>
307
             <xsl:apply-templates select="endDate"/>
308
          </td>
309
     </tr>
310
  </xsl:template>
311

  
312

  
313
  <xsl:template match="beginDate">
314
      <xsl:call-template name="singleDateType"/>
315
  </xsl:template>
316

  
317
  <xsl:template match="endDate">
318
      <xsl:call-template name="singleDateType"/>
319
  </xsl:template>
320

  
321
  <xsl:template name="singleDateType">
322
    <table>
323
     <xsl:if test="calendarDate">
324
      <tr>
325
       <td colspan="2" class="{$secondColStyle}">
326
          <xsl:value-of select="calendarDate"/>
327
          <xsl:if test="./time and normalize-space(./time)!=''">
328
            <xsl:text>&#160; at &#160;</xsl:text><xsl:apply-templates select="time"/>
329
          </xsl:if>
330
        </td>
331
      </tr>
332
     </xsl:if>
333
     <xsl:if test="alternativeTimeScale">
334
         <xsl:apply-templates select="alternativeTimeScale"/>
335
     </xsl:if>
336
    </table>
337
  </xsl:template>
338

  
339

  
340
  <xsl:template match="alternativeTimeScale">
341

  
342
        <tr><td class="{$firstColStyle}">
343
            Timescale:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleName"/></td></tr>
344
        <tr><td class="{$firstColStyle}">
345
            Time estimate:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeEstimate"/></td></tr>
346
        <xsl:if test="timeScaleAgeUncertainty and normalize-space(timeScaleAgeUncertainty)!=''">
347
        <tr><td class="{$firstColStyle}">
348
            Time uncertainty:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeUncertainty"/></td></tr>
349
        </xsl:if>
350
        <xsl:if test="timeScaleAgeExplanation and normalize-space(timeScaleAgeExplanation)!=''">
351
        <tr><td class="{$firstColStyle}">
352
            Time explanation:</td><td class="{$secondColStyle}"><xsl:value-of select="timeScaleAgeExplanation"/></td></tr>
353
        </xsl:if>
354
        <xsl:if test="timeScaleCitation and normalize-space(timeScaleCitation)!=''">
355
        <tr><td class="{$firstColStyle}">
356
            Citation:</td><td class="{$secondColStyle}">
357
            <xsl:apply-templates select="timeScaleCitation"/>
358
        </td></tr>
359
        </xsl:if>
360

  
361
  </xsl:template>
362

  
363
  <xsl:template match="timeScaleCitation">
364
     <!-- Using citation module here -->
365
     <xsl:call-template name="citation">
366
     </xsl:call-template>
367
  </xsl:template>
368

  
369
<!-- ********************************************************************* -->
370
<!-- ***************  T A X O N O M I C   C O V E R A G E  *************** -->
371
<!-- ********************************************************************* -->
372
  <xsl:template name="taxonomicCoverage">
373
     <xsl:choose>
374
      <xsl:when test="references!=''">
375
        <xsl:variable name="ref_id" select="references"/>
376
        <xsl:variable name="references" select="$ids[@id=$ref_id]" />
377
        <xsl:for-each select="$references">
378
          <table class="{$tabledefaultStyle}">
379
            <xsl:call-template name="taxonomicCovCommon" />
380
          </table>
381
        </xsl:for-each>
382
      </xsl:when>
383
      <xsl:otherwise>
384
        <table class="{$tabledefaultStyle}">
385
          <xsl:call-template name="taxonomicCovCommon" />
386
        </table>
387
      </xsl:otherwise>
388
    </xsl:choose>
389
  </xsl:template>
390

  
391

  
392
  <xsl:template name="taxonomicCovCommon">
393
      <tr><th colspan="2">
394
      <xsl:text>Taxonomic Range:</xsl:text></th></tr>
395
      <xsl:apply-templates select="taxonomicSystem"/>
396
      <xsl:apply-templates select="generalTaxonomicCoverage"/>
397
      <xsl:for-each select="taxonomicClassification">
398
          <xsl:apply-templates select="."/>
399
      </xsl:for-each>
400
  </xsl:template>
401

  
402

  
403
 <xsl:template match="taxonomicSystem">
404
     <tr><td class="{$firstColStyle}">
405
        <xsl:text>Taxonomic System:</xsl:text></td>
406
        <td>
407
            <table class="{$tabledefaultStyle}">
408
              <xsl:apply-templates select="./*"/>
409
            </table>
410
        </td>
411
     </tr>
412
  </xsl:template>
413

  
414

  
415
  <xsl:template match="classificationSystem">
416
     <xsl:for-each select="classificationSystemCitation">
417
        <tr><td class="{$firstColStyle}">Classification Citation:</td>
418
          <td>
419
           <xsl:call-template name="citation">
420
             <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
421
             <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
422
           </xsl:call-template>
423
         </td>
424
        </tr>
425
     </xsl:for-each>
426
     <xsl:if test="classificationSystemModifications and normalize-space(classificationSystemModifications)!=''">
427
      <tr><td class="{$firstColStyle}">Modification:</td>
428
        <td class="{$secondColStyle}">
429
          <xsl:value-of select="classificationSystemModifications"/>
430
        </td>
431
      </tr>
432
     </xsl:if>
433
  </xsl:template>
434

  
435

  
436
  <xsl:template match="identificationReference">
437
      <tr><td class="{$firstColStyle}">ID Reference:</td>
438
          <td>
439
             <xsl:call-template name="citation">
440
                <xsl:with-param name="citationfirstColStyle" select="$firstColStyle"/>
441
                <xsl:with-param name="citationsubHeaderStyle" select="$subHeaderStyle"/>
442
             </xsl:call-template>
443
          </td>
444
     </tr>
445
  </xsl:template>
446

  
447
  <xsl:template match="identifierName">
448
      <tr><td class="{$firstColStyle}">ID Name:</td>
449
          <td>
450
             <xsl:call-template name="party">
451
               <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
452
             </xsl:call-template>
453
          </td>
454
      </tr>
455
  </xsl:template>
456

  
457
  <xsl:template match="taxonomicProcedures">
458
    <tr><td class="{$firstColStyle}">
459
        <xsl:text>Procedures:</xsl:text></td><td class="{$secondColStyle}">
460
        <xsl:value-of select="."/></td></tr>
461
  </xsl:template>
462

  
463
  <xsl:template match="taxonomicCompleteness">
464
    <tr><td class="{$firstColStyle}">
465
        <xsl:text>Completeness:</xsl:text></td><td class="{$secondColStyle}">
466
        <xsl:value-of select="."/></td></tr>
467
  </xsl:template>
468

  
469
  <xsl:template match="vouchers">
470
      <tr><td class="{$firstColStyle}">Vouchers:</td>
471
        <td>
472
        <table class="{$tabledefaultStyle}">
473
        <xsl:apply-templates select="specimen"/>
474
        <xsl:apply-templates select="repository"/>
475
        </table>
476
        </td></tr>
477
  </xsl:template>
478

  
479
  <xsl:template match="specimen">
480
    <tr><td class="{$firstColStyle}">
481
        <xsl:text>Specimen:</xsl:text></td><td class="{$secondColStyle}">
482
        <xsl:value-of select="."/></td></tr>
483
  </xsl:template>
484

  
485
  <xsl:template match="repository">
486
    <tr><td class="{$firstColStyle}">Repository:</td>
487
        <td>
488
            <xsl:for-each select="originator">
489
               <xsl:call-template name="party">
490
                 <xsl:with-param name="partyfirstColStyle" select="$firstColStyle"/>
491
               </xsl:call-template>
492
            </xsl:for-each>
493
        </td>
494
    </tr>
495
  </xsl:template>
496

  
497

  
498
  <xsl:template match="generalTaxonomicCoverage">
499
      <tr><td class="{$firstColStyle}">
500
             <xsl:text>General Coverage:</xsl:text></td>
501
           <td class="{$secondColStyle}">
502
             <xsl:value-of select="."/>
503
          </td>
504
      </tr>
505
  </xsl:template>
506

  
507

  
508
  <xsl:template match="taxonomicClassification">
509
    <tr><td class="{$firstColStyle}">
510
        <xsl:text>Classification:</xsl:text></td><td>
511
        <table class="{$tabledefaultStyle}">
512
        <xsl:apply-templates select="./*" mode="nest"/>
513
        </table>
514
        </td></tr>
515
  </xsl:template>
516

  
517
  <xsl:template match="taxonRankName" mode="nest" >
518
      <tr><td class="{$firstColStyle}">
519
        <xsl:text>Rank Name:</xsl:text></td><td class="{$secondColStyle}">
520
        <xsl:value-of select="."/></td></tr>
521
  </xsl:template>
522

  
523
  <xsl:template match="taxonRankValue" mode="nest">
524
      <tr><td class="{$firstColStyle}">
525
        <xsl:text>Rank Value:</xsl:text></td><td class="{$secondColStyle}">
526
        <xsl:value-of select="."/></td></tr>
527
  </xsl:template>
528

  
529
  <xsl:template match="commonName" mode="nest">
530
      <tr><td class="{$firstColStyle}">
531
            <xsl:text>Common Name:</xsl:text></td><td class="{$secondColStyle}">
532
            <xsl:value-of select="."/>
533
          </td>
534
      </tr>
535
  </xsl:template>
536

  
537
  <xsl:template match="taxonomicClassification" mode="nest">
538
    <tr><td class="{$firstColStyle}">
539
          <xsl:text>Classification:</xsl:text>
540
        </td>
541
        <td>
542
           <table class="{$tabledefaultStyle}">
543
             <xsl:apply-templates select="./*" mode="nest"/>
544
           </table>
545
        </td>
546
     </tr>
547
  </xsl:template>
548

  
549
</xsl:stylesheet>
0 550

  
lib/style/skins/sbclter/templates/xsl/resultset.xsl
33 33
-->
34 34

  
35 35
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
36
  <!-- import the header, footer, and sidebars for customized styling -->
37
  <xsl:import href="./pageheader.xsl"/>
38
  <xsl:import href="./pagefooter.xsl"/>
39
  <xsl:import href="./page_leftsidebar.xsl"/>
40
  <xsl:import href="./page_rightsidebar.xsl"/>
41
  <xsl:import href="./loginbox.xsl"/>
42
  <xsl:import href="./searchbox.xsl"/>
43
  
36 44
  <xsl:param name="cgi-prefix"/>
37 45
  <xsl:param name="sessid"/>
38 46
  <xsl:param name="enableediting">false</xsl:param>
......
40 48
  <!-- This parameter gets overidden by the chosen default qformat -->
41 49
  <xsl:param name="qformat">default</xsl:param>
42 50
  <xsl:param name="servletURL"/>
43
  
44
  <!-- import the header, footer, and sidebars for customized styling -->
45
  <xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/pageheader.xsl"/>
46
  <xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/pagefooter.xsl"/>
47
  <xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/page_leftsidebar.xsl"/>
48
  <xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/page_rightsidebar.xsl"/>
49
  <xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/loginbox.xsl"/>
50
  <xsl:import href="{$contextURL}/style/skins/sbclter/templates/xsl/searchbox.xsl"/>
51 51

  
52 52
  <!-- send the resultset back to the browser styled in HTML -->
53 53
  <xsl:output method="html" encoding="iso-8859-1" indent="yes" standalone="yes"
lib/style/skins/sbclter/templates/xsl/sbclter-eml-2.1.0.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
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
  *
9
  *   '$Author: barteau $'
10
  *     '$Date: 2008-01-15 17:12:44 -0800 (Tue, 15 Jan 2008) $'
11
  * '$Revision: 3689 $'
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-dataset.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="../../../../shared/eml-2.1.0/eml.xsl"/>
34
  <xsl:import href="./pageheader.xsl"/>
35
  <xsl:import href="./pagefooter.xsl"/>
36
  <xsl:import href="./page_leftsidebar.xsl"/>
37
  <xsl:import href="./page_rightsidebar.xsl"/>
38

  
39
  <xsl:output method="html" encoding="iso-8859-1"
40
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
41
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
42
    indent="yes" />  
43
  <!-- global variables to store id node set in case to be referenced-->
44
  <xsl:variable name="ids" select="//*[@id!='']"/>
45

  
46
  <xsl:template match="/">
47
    <html>
48
      <head>
49
        <link rel="stylesheet" type="text/css"
50
              href="./style/skins/sbclter/sbclter.css" />
51
      </head>
52
      <body>
53
        <!-- begin the header area -->
54
        <xsl:call-template name="pageheader" />
55
        <!-- end the header area -->
56
   
57
        <!-- begin the left sidebar area -->
58
        <xsl:call-template name="page_leftsidebar" />
59
        <!-- end the left sidebar area -->
60
   
61
        <!-- begin the content area -->
62
        <div id="{$mainTableAligmentStyle}">
63
          <xsl:apply-templates select="*[local-name()='eml']"/>
64
        </div>
65
        <!-- end the content area -->
66
   
67
        <!-- begin the right sidebar area -->
68
        <xsl:call-template name="page_rightsidebar" />
69
        <!-- end the right sidebar area -->
70

  
71
        <!-- begin the footer area -->
72
        <xsl:call-template name="pagefooter" />
73
        <!-- end the footer area -->
74
      </body>
75
    </html>
76
   </xsl:template>
77
   
78
</xsl:stylesheet>
0 79

  
lib/style/shared/eml-2.1.0/eml-settings.xsl
1
<?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: barteau $'
10
  *     '$Date: 2008-01-15 17:12:44 -0800 (Tue, 15 Jan 2008) $'
11
  * '$Revision: 3689 $'
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
  *****************************************************************************
28
  *
29
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet that provides a
30
  * single, central location for setting all installation-specific paths for
31
  * XSLT stylesheets.  It is intended to be imported (using the
32
  * <xsl:import href="..." /> element) into other XSLT stylesheets used in the
33
  * transformation of xml files that are valid with respect to the
34
  * applicable dtd of the Ecological Metadata Language (EML).
35

  
36
  * Some of these paths incorporate values of the form: @token-name@; these are
37
  * intended to allow an Ant (http://jakarta.apache.org/ant/index.html) build
38
  * script to replace the tokens automatically with the correct values at build/
39
  * install time.  If Ant is not used, the tokens may simply be edited by hand
40
  * to point to the correct resources.
41
  * Note that the values given below may be overridden by passing parameters to
42
  * the XSLT processor programatically, although the procedure for doing so is
43
  * vendor-specific.  Note also that these parameter definitions will be overridden
44
  * by any identical parameter names declared within xsl stylesheets that import
45
  * this stylesheet.
46
  *
47
-->
48

  
49
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
50

  
51

  
52
<!--
53
    /**
54
    *   The filename of the default css stylesheet to be used
55
    *   (filename only - not the whole path, and no ".css" extension.  The
56
    *   example below would look for a file named "default.css" in the same
57
    *   directory as the stylesheets
58
    */
59
-->
60

  
61
  <xsl:param name="qformat">default</xsl:param>
62

  
63

  
64
<!--
65
    /**
66
    *   The module which need to be display in eml2 document. The default
67
    *   value is dataset
68
    */
69
-->
70
  <xsl:param name="displaymodule">dataset</xsl:param>
71

  
72

  
73
<!--
74
    /**
75
    *   To show the links for the Entities in the dataset display module.
76
    */
77
-->
78
  <xsl:param name="withEntityLinks">1</xsl:param>
79

  
80

  
81
<!--
82
    /**
83
    *   To show the link for Additional Metadata in the dataset display module.
84
    */
85
-->
86
  <xsl:param name="withAdditionalMetadataLink">1</xsl:param>
87

  
88

  
89
<!--
90
    /**
91
    *   To show the link for the Original XML in the dataset display module.
92
    */
93
-->
94
  <xsl:param name="withOriginalXMLLink">1</xsl:param>
95

  
96

  
97
<!--
98
    /**
99
    *   To show the Attributes table in the entity display.
100
    */
101
-->
102
  <xsl:param name="withAttributes">1</xsl:param>
103

  
104

  
105
<!--
106
   /**
107
    *   the path of the directory where the XSL and CSS files reside - starts
108
    *   with context name, eg: /myContextRoot/styleDirectory.
109
    *   (As found in "http://hostname:port/myContextRoot/styleDirectory").
110
    *   Needs leading slash but not trailing slash
111
    *
112
    *   EXAMPLE:
113
    *       <xsl:param name="stylePath">/brooke/style</xsl:param>
114
    */
115
-->
116

  
117
    <xsl:param name="stylePath">./style/skins</xsl:param>
118

  
119

  
120
<!--
121
   /*
122
    *   the path of the directory where the common javascript and css files
123
    *   reside - i.e the files that are not skin-specific. Starts
124
    *   with context name, eg: /myContextRoot/styleCommonDirectory.
125
    *   (As found in "http://hostname:port/myContextRoot/styleCommonDirectory").
126
    *
127
    *   EXAMPLE
128
    *       <xsl:param name="styleCommonPath">/brooke/style/common</xsl:param>
129
    */
130
-->
131

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff