Revision 823
Added by Matt Jones over 23 years ago
eml-dataset-display.xsl | ||
---|---|---|
44 | 44 |
<h1>Data set description</h1> |
45 | 45 |
<h3>Ecological Metadata Language</h3> |
46 | 46 |
</center> |
47 |
<table width="100%"> |
|
48 |
<xsl:apply-templates select="/dataset/identifier" mode="layout"/> |
|
49 |
<xsl:apply-templates select="/dataset/title" mode="layout"/> |
|
50 |
<xsl:apply-templates select="/dataset/shortName" mode="layout"/> |
|
51 |
</table> |
|
52 |
|
|
47 | 53 |
<xsl:apply-templates/> |
48 | 54 |
|
49 | 55 |
<table width="100%"> |
... | ... | |
52 | 58 |
</td></tr> |
53 | 59 |
<tr><td> |
54 | 60 |
<ul> |
55 |
<xsl:for-each select="//keyword_info/keyword">
|
|
61 |
<xsl:for-each select="//keywordSet/keyword">
|
|
56 | 62 |
<li><xsl:value-of select="."/></li> |
57 | 63 |
</xsl:for-each> |
58 | 64 |
</ul> |
... | ... | |
66 | 72 |
</td></tr> |
67 | 73 |
<tr><td> |
68 | 74 |
<ul> |
69 |
<xsl:for-each select="//relations">
|
|
75 |
<xsl:for-each select="//triple">
|
|
70 | 76 |
<li> |
71 |
<xsl:value-of select="@object"/>
|
|
77 |
<xsl:value-of select="./subject"/>
|
|
72 | 78 |
<xsl:text> </xsl:text> |
73 |
<xsl:value-of select="@relation"/>
|
|
79 |
<xsl:value-of select="./relationship"/>
|
|
74 | 80 |
<xsl:text> </xsl:text> |
75 |
<xsl:value-of select="@target"/>
|
|
81 |
<xsl:value-of select="./object"/>
|
|
76 | 82 |
</li> |
77 | 83 |
</xsl:for-each> |
78 | 84 |
</ul> |
... | ... | |
83 | 89 |
</html> |
84 | 90 |
</xsl:template> |
85 | 91 |
|
86 |
<xsl:template match="meta_file_id"> |
|
87 |
<table width="100%"> |
|
88 |
<tr> |
|
89 |
<td class="highlight"><b><xsl:text>Metadata File ID:</xsl:text></b></td> |
|
90 |
<td><xsl:value-of select="."/></td> |
|
91 |
</tr> |
|
92 |
<xsl:for-each select="//dataset_id|//title"> |
|
93 |
<tr> |
|
94 |
<xsl:if test="name(.)='dataset_id'"> |
|
95 |
<td class="highlight"><b><xsl:text>Data set ID:</xsl:text></b></td> |
|
96 |
</xsl:if> |
|
97 |
<xsl:if test="name(.)='title'"> |
|
98 |
<td class="highlight"><b><xsl:text>Title:</xsl:text></b></td> |
|
99 |
</xsl:if> |
|
100 |
<td><xsl:value-of select="."/></td> |
|
101 |
</tr> |
|
102 |
</xsl:for-each> |
|
103 |
</table> |
|
104 |
|
|
92 |
<xsl:template match="identifier"/> |
|
93 |
<xsl:template match="identifier" mode="layout"> |
|
94 |
<tr> |
|
95 |
<td class="highlight"><b><xsl:text>Metadata Identifier:</xsl:text></b></td> |
|
96 |
<td><xsl:value-of select="."/> |
|
97 |
<xsl:if test="./@system"> |
|
98 |
(Metadata system=<xsl:value-of select="./@system"/>) |
|
99 |
</xsl:if> |
|
100 |
</td> |
|
101 |
</tr> |
|
105 | 102 |
</xsl:template> |
106 | 103 |
|
107 |
<xsl:template match="dataset_id"/> |
|
108 | 104 |
<xsl:template match="title"/> |
105 |
<xsl:template match="title" mode="layout"> |
|
106 |
<tr> |
|
107 |
<td class="highlight"><b><xsl:text>Title:</xsl:text></b></td> |
|
108 |
<td><xsl:value-of select="."/></td> |
|
109 |
</tr> |
|
110 |
</xsl:template> |
|
109 | 111 |
|
112 |
<xsl:template match="shortName"/> |
|
113 |
<xsl:template match="shortName" mode="layout"> |
|
114 |
<tr> |
|
115 |
<td class="highlight"><b><xsl:text>Short Name:</xsl:text></b></td> |
|
116 |
<td><xsl:value-of select="."/></td> |
|
117 |
</tr> |
|
118 |
</xsl:template> |
|
119 |
|
|
120 |
<xsl:template match="originator"> |
|
121 |
<p class="indent"> |
|
122 |
<xsl:apply-templates/> |
|
123 |
</p> |
|
124 |
</xsl:template> |
|
125 |
|
|
110 | 126 |
<xsl:template match="originator[1]"> |
127 |
<p><xsl:text> </xsl:text></p> |
|
111 | 128 |
<table width="100%"> |
112 | 129 |
<tr><td class="highlight"> |
113 | 130 |
<b><xsl:text>Data Set Owner(s):</xsl:text></b> |
114 | 131 |
</td></tr> |
115 | 132 |
</table> |
133 |
<p class="indent"> |
|
134 |
<xsl:apply-templates/> |
|
135 |
</p> |
|
116 | 136 |
</xsl:template> |
117 | 137 |
|
118 |
<xsl:template match="party_org">
|
|
138 |
<xsl:template match="organizationName">
|
|
119 | 139 |
<br><b><xsl:value-of select="."/></b></br> |
120 | 140 |
</xsl:template> |
121 | 141 |
|
122 |
<xsl:template match="party_individual">
|
|
142 |
<xsl:template match="individualName">
|
|
123 | 143 |
<br> |
124 | 144 |
<b> |
125 | 145 |
<xsl:value-of select="./salutation"/> |
126 | 146 |
<xsl:text> </xsl:text> |
127 |
<xsl:value-of select="./given_name"/>
|
|
147 |
<xsl:value-of select="./givenName"/>
|
|
128 | 148 |
<xsl:text> </xsl:text> |
129 |
<xsl:value-of select="./surname"/>
|
|
149 |
<xsl:value-of select="./surName"/>
|
|
130 | 150 |
</b></br> |
131 |
<br><xsl:value-of select="./title"/></br> |
|
132 | 151 |
</xsl:template> |
133 | 152 |
|
134 |
<xsl:template match="meta_address">
|
|
153 |
<xsl:template match="address"> |
|
135 | 154 |
<table> |
136 |
<xsl:for-each select="./address">
|
|
155 |
<xsl:for-each select="./deliveryPoint">
|
|
137 | 156 |
<tr> |
138 | 157 |
<td><xsl:value-of select="."/></td> |
139 | 158 |
</tr> |
... | ... | |
141 | 160 |
<tr> |
142 | 161 |
<td><xsl:value-of select="./city"/> |
143 | 162 |
<xsl:text>, </xsl:text> |
144 |
<xsl:value-of select="./admin_area"/>
|
|
163 |
<xsl:value-of select="./administrativeArea"/>
|
|
145 | 164 |
<xsl:text> </xsl:text> |
146 |
<xsl:value-of select="./postal_code"/>
|
|
165 |
<xsl:value-of select="./postalCode"/>
|
|
147 | 166 |
</td> |
148 | 167 |
</tr> |
149 |
<xsl:if test="./work_phone"> |
|
150 |
<tr><td><xsl:text>Work: </xsl:text><xsl:value-of select="./work_phone"/> |
|
151 |
</td></tr> |
|
168 |
<xsl:if test="./country"> |
|
169 |
<tr><td><xsl:value-of select="./country"/></td></tr> |
|
152 | 170 |
</xsl:if> |
153 |
<xsl:if test="./home_phone"> |
|
154 |
<tr><td><xsl:text>Home: </xsl:text><xsl:value-of select="./home_phone"/> |
|
155 |
</td></tr> |
|
156 |
</xsl:if> |
|
157 |
<xsl:if test="./fax"> |
|
158 |
<tr><td><xsl:text>Fax: </xsl:text><xsl:value-of select="./fax"/></td></tr> |
|
159 |
</xsl:if> |
|
160 |
<xsl:if test="./email"> |
|
161 |
<tr><td><xsl:value-of select="./email"/></td></tr> |
|
162 |
</xsl:if> |
|
163 |
<xsl:if test="./resource_url"> |
|
164 |
<tr><td><xsl:value-of select="./resource_url"/></td></tr> |
|
165 |
</xsl:if> |
|
166 | 171 |
</table> |
167 | 172 |
</xsl:template> |
168 | 173 |
|
174 |
<xsl:template match="phone"> |
|
175 |
<xsl:text>Phone: </xsl:text><xsl:value-of select="."/><br/> |
|
176 |
</xsl:template> |
|
177 |
|
|
178 |
<xsl:template match="electronicMailAddress"> |
|
179 |
<xsl:text>Email: </xsl:text><xsl:value-of select="."/><br/> |
|
180 |
</xsl:template> |
|
181 |
|
|
182 |
<xsl:template match="onlineLink"> |
|
183 |
<xsl:text>URL: </xsl:text><xsl:value-of select="."/><br/> |
|
184 |
</xsl:template> |
|
185 |
|
|
186 |
<xsl:template match="role"> |
|
187 |
<xsl:text>Role: </xsl:text><xsl:value-of select="."/><br/> |
|
188 |
</xsl:template> |
|
189 |
|
|
169 | 190 |
<xsl:template match="abstract"> |
170 | 191 |
<table width="100%"> |
171 | 192 |
<tr> |
172 | 193 |
<td class="highlight"><b><xsl:text>Abstract:</xsl:text></b></td> |
173 | 194 |
</tr> |
174 | 195 |
<tr> |
175 |
<td><xsl:value-of select="."/></td> |
|
196 |
<td><xsl:value-of select="./paragraph"/></td>
|
|
176 | 197 |
</tr></table> |
177 | 198 |
</xsl:template> |
178 | 199 |
|
179 |
<xsl:template match="keyword_info"/> |
|
180 |
<xsl:template match="relations"/> |
|
200 |
<xsl:template match="rights"> |
|
201 |
<table width="100%"> |
|
202 |
<tr> |
|
203 |
<td class="highlight"><b><xsl:text>License and Usage Rights:</xsl:text></b></td> |
|
204 |
</tr> |
|
205 |
<tr> |
|
206 |
<td><xsl:value-of select="./paragraph"/></td> |
|
207 |
</tr></table> |
|
208 |
</xsl:template> |
|
181 | 209 |
|
210 |
<xsl:template match="additionalInfo"> |
|
211 |
<table width="100%"> |
|
212 |
<tr> |
|
213 |
<td class="highlight"><b><xsl:text>Additional Information:</xsl:text></b></td> |
|
214 |
</tr> |
|
215 |
<tr> |
|
216 |
<td><xsl:value-of select="./paragraph"/></td> |
|
217 |
</tr></table> |
|
218 |
</xsl:template> |
|
219 |
|
|
220 |
<xsl:template match="keywordSet"/> |
|
221 |
<xsl:template match="triple"/> |
|
222 |
|
|
182 | 223 |
</xsl:stylesheet> |
Also available in: Unified diff
Updated stylesheet to reflect the new eml2 schema.