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: tao $'
|
10
|
* '$Date: 2000-11-20 05:14:04 -0800 (Mon, 20 Nov 2000) $'
|
11
|
* '$Revision: 553 $'
|
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="eml-settings-2.0.0beta6-@name@.xsl" />
|
34
|
<xsl:import href="eml-resource-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"
|
42
|
href="{$stylePath}/{$qformat}.css" />
|
43
|
</head>
|
44
|
<body>
|
45
|
<center>
|
46
|
<h1>Software Description</h1>
|
47
|
<h3>Ecological Metadata Language</h3>
|
48
|
</center>
|
49
|
<table class="tabledefault" width="100%"><!-- width needed for NN4 - doesn't recognize width in css -->
|
50
|
|
51
|
<!--xsl:apply-templates select="software/identifier" mode="resource"/>
|
52
|
<xsl:apply-templates select="software/pubDate" mode="resource"/>
|
53
|
<xsl:apply-templates select="software/pubPlace" mode="resource"/>
|
54
|
<xsl:apply-templates select="software/series" mode="resource"/-->
|
55
|
|
56
|
<xsl:apply-templates select="software/*" mode="resource"/>
|
57
|
<xsl:apply-templates select="software"/>
|
58
|
</table>
|
59
|
</body>
|
60
|
</html>
|
61
|
</xsl:template>
|
62
|
|
63
|
<xsl:template match="software">
|
64
|
<tr><td class="{$subHeaderStyle}" colspan="2">
|
65
|
<xsl:text>Software:</xsl:text></td></tr>
|
66
|
<xsl:apply-templates select="./versionNumber"/>
|
67
|
<xsl:apply-templates select="./sourceModule"/>
|
68
|
<xsl:apply-templates select="./binaryFile"/>
|
69
|
<xsl:apply-templates select="./location"/>
|
70
|
<xsl:apply-templates select="./programmingLanguage"/>
|
71
|
</xsl:template>
|
72
|
|
73
|
<xsl:template match="versionNumber" mode="resource"/>
|
74
|
<xsl:template match="versionNumber">
|
75
|
<xsl:if test="normalize-space(../versionNumber)!=''">
|
76
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
77
|
Version Number:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
78
|
<xsl:value-of select="../versionNumber"/></td></tr>
|
79
|
</xsl:if>
|
80
|
</xsl:template>
|
81
|
|
82
|
<xsl:template match="sourceModule" mode="resource"/>
|
83
|
<xsl:template match="sourceModule">
|
84
|
<xsl:if test="normalize-space(../sourceModule)!=''">
|
85
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
86
|
Source Module:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
87
|
<xsl:value-of select="../sourceModule"/></td></tr>
|
88
|
</xsl:if>
|
89
|
</xsl:template>
|
90
|
|
91
|
<xsl:template match="binaryFile" mode="resource"/>
|
92
|
<xsl:template match="binaryFile">
|
93
|
<xsl:if test="normalize-space(../binaryFile)!=''">
|
94
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
95
|
Binary File:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
96
|
<xsl:value-of select="../binaryFile"/></td></tr>
|
97
|
</xsl:if>
|
98
|
</xsl:template>
|
99
|
|
100
|
<xsl:template match="location" mode="resource"/>
|
101
|
<xsl:template match="location">
|
102
|
<xsl:if test="normalize-space(../location)!=''">
|
103
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
104
|
Location:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
105
|
<xsl:value-of select="../location"/></td></tr>
|
106
|
</xsl:if>
|
107
|
</xsl:template>
|
108
|
|
109
|
<xsl:template match="programmingLanguage" mode="resource"/>
|
110
|
<xsl:template match="programmingLanguage">
|
111
|
<xsl:if test="normalize-space(../programmingLanguage)!=''">
|
112
|
<tr><td width="{$firstColWidth}" class="{$firstColStyle}">
|
113
|
Programming Language:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
|
114
|
<xsl:value-of select="../programmingLanguage"/></td></tr>
|
115
|
</xsl:if>
|
116
|
</xsl:template>
|
117
|
|
118
|
<!-- suppress these -->
|
119
|
<xsl:template match="identifier"/>
|
120
|
<xsl:template match="shortName"/>
|
121
|
<xsl:template match="title"/>
|
122
|
<xsl:template match="software" mode="resource"/>
|
123
|
<xsl:template match="pubDate"/>
|
124
|
<xsl:template match="pubPlace"/>
|
125
|
<xsl:template match="series"/>
|
126
|
|
127
|
</xsl:stylesheet>
|