1 |
5360
|
tao
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<!--
|
3 |
|
|
* '$RCSfile$'
|
4 |
|
|
* Authors: Matt Jones, CHad Berkley
|
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 |
5501
|
tao
|
* '$Author: tao $'
|
10 |
|
|
* '$Date: 2010-08-13 11:10:50 -0700 (Fri, 13 Aug 2010) $'
|
11 |
|
|
* '$Revision: 5498 $'
|
12 |
5360
|
tao
|
*
|
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 showing the resultset of a query
|
29 |
|
|
* into an HTML format suitable for rendering with modern web browsers.
|
30 |
|
|
-->
|
31 |
|
|
<xsl:stylesheet
|
32 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
33 |
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
34 |
|
|
version="1.0">
|
35 |
5367
|
tao
|
<xsl:import href="../../common/util.xsl"/>
|
36 |
5360
|
tao
|
<xsl:output method="xml" encoding="utf-8"
|
37 |
|
|
doctype-public="-//W3C//DTD XHTML 1.1//EN"
|
38 |
|
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
|
39 |
|
|
indent="yes" />
|
40 |
|
|
|
41 |
|
|
<xsl:param name="sessid"/>
|
42 |
|
|
<xsl:param name="qformat">default</xsl:param>
|
43 |
|
|
<xsl:param name="enableediting">false</xsl:param>
|
44 |
|
|
<xsl:param name="contextURL"/>
|
45 |
|
|
<xsl:param name="httpServer"/>
|
46 |
|
|
|
47 |
|
|
<xsl:template match="/">
|
48 |
|
|
<html xml:lang="en-US">
|
49 |
|
|
<head>
|
50 |
|
|
<title><xsl:value-of select="//karEntry/karEntryXML/entity/@name"/></title>
|
51 |
|
|
<link rel="stylesheet" type="text/css"
|
52 |
|
|
href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
|
53 |
|
|
|
54 |
5501
|
tao
|
<script language="Javascript" type="text/JavaScript"
|
55 |
|
|
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js">
|
56 |
|
|
<xsl:text disable-output-escaping="yes">
|
57 |
|
|
</xsl:text>
|
58 |
|
|
</script>
|
59 |
|
|
<script language="Javascript" type="text/JavaScript"
|
60 |
|
|
src="{$contextURL}/style/common/branding.js">
|
61 |
|
|
<xsl:text disable-output-escaping="yes">
|
62 |
|
|
</xsl:text>
|
63 |
|
|
</script>
|
64 |
5360
|
tao
|
<style type="text/css">
|
65 |
|
|
<xsl:text disable-output-escaping="yes">
|
66 |
|
|
body, a, p, td, tr, h3, h2, h1
|
67 |
|
|
{
|
68 |
|
|
font-family: Arial, Helvetica, sans-serif;
|
69 |
|
|
}
|
70 |
|
|
|
71 |
|
|
body
|
72 |
|
|
{
|
73 |
|
|
background: #ece9d8;
|
74 |
|
|
margin: 0;
|
75 |
|
|
}
|
76 |
|
|
|
77 |
|
|
tr.top-level > td
|
78 |
|
|
{
|
79 |
|
|
text-align: left;
|
80 |
|
|
}
|
81 |
|
|
|
82 |
|
|
tr.top-level > td
|
83 |
|
|
{
|
84 |
|
|
background: white;
|
85 |
|
|
border: 0.125em ridge white;
|
86 |
|
|
padding: 0.375em;
|
87 |
|
|
}
|
88 |
|
|
|
89 |
|
|
td tr
|
90 |
|
|
{
|
91 |
|
|
vertical-align: top;
|
92 |
|
|
}
|
93 |
|
|
|
94 |
|
|
td td
|
95 |
|
|
{
|
96 |
|
|
padding: 0.1875em;
|
97 |
|
|
}
|
98 |
|
|
</xsl:text>
|
99 |
|
|
</style>
|
100 |
|
|
</head>
|
101 |
|
|
|
102 |
|
|
<body>
|
103 |
5501
|
tao
|
<script language="JavaScript">
|
104 |
|
|
<![CDATA[
|
105 |
|
|
insertTemplateOpening("]]><xsl:value-of select="$contextURL" /><![CDATA[");
|
106 |
|
|
]]>
|
107 |
|
|
</script>
|
108 |
5360
|
tao
|
<table cellspacing="8" cellpadding="0" style="border: none; width: 100%;" class="main">
|
109 |
|
|
<colgroup></colgroup>
|
110 |
|
|
<colgroup style="width: 75%;"></colgroup>
|
111 |
|
|
<colgroup style="width: 25%;"></colgroup>
|
112 |
|
|
|
113 |
|
|
<tr class="top-level">
|
114 |
5501
|
tao
|
<td colspan="3">
|
115 |
5360
|
tao
|
<h1>
|
116 |
|
|
<span style="padding-right: 2em;">
|
117 |
5501
|
tao
|
<xsl:value-of select="substring-before(//karFileName, '.')"/>
|
118 |
5360
|
tao
|
</span>
|
119 |
|
|
|
120 |
|
|
<span style="font-size: smaller;">
|
121 |
5501
|
tao
|
<xsl:variable name="karDocid">
|
122 |
5367
|
tao
|
<xsl:call-template name="extractDocidFromLsid">
|
123 |
|
|
<xsl:with-param name="lsidString" select="//mainAttributes/lsid" />
|
124 |
|
|
</xsl:call-template>
|
125 |
|
|
</xsl:variable>
|
126 |
|
|
|
127 |
5360
|
tao
|
<a>
|
128 |
5367
|
tao
|
<!--<xsl:attribute name="href"><xsl:value-of select="$httpServer"/>/authority/data?lsid=<xsl:value-of select="/entity/property[@name='karId']/@value"/></xsl:attribute>-->
|
129 |
5501
|
tao
|
<xsl:attribute name="href">
|
130 |
5367
|
tao
|
<xsl:text>metacat?</xsl:text>
|
131 |
|
|
<xsl:text>&action=read&docid=</xsl:text>
|
132 |
|
|
<xsl:value-of select="$karDocid"/>
|
133 |
|
|
</xsl:attribute>
|
134 |
5360
|
tao
|
<xsl:text>Download</xsl:text>
|
135 |
|
|
</a>
|
136 |
5501
|
tao
|
<!--<xsl:text> (</xsl:text>
|
137 |
|
|
<xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='class']/@value"/>
|
138 |
|
|
<xsl:text>)</xsl:text>-->
|
139 |
|
|
</span>
|
140 |
|
|
</h1>
|
141 |
|
|
|
142 |
|
|
|
143 |
5360
|
tao
|
</td>
|
144 |
|
|
|
145 |
5501
|
tao
|
<!--<td>
|
146 |
|
|
|
147 |
|
|
</td>-->
|
148 |
5360
|
tao
|
</tr>
|
149 |
5501
|
tao
|
|
150 |
|
|
<xsl:for-each select="//karEntry">
|
151 |
|
|
<xsl:choose>
|
152 |
|
|
<xsl:when test="./karEntryXML/entity/@name!=''">
|
153 |
|
|
<!-- this is workflow kar entry-->
|
154 |
|
|
<tr class="top-level">
|
155 |
|
|
<td>
|
156 |
|
|
<h3>
|
157 |
|
|
<xsl:value-of select="./karEntryXML/entity/@name"/>
|
158 |
|
|
</h3>
|
159 |
5360
|
tao
|
</td>
|
160 |
5501
|
tao
|
|
161 |
|
|
<td colspan="2">
|
162 |
|
|
|
163 |
|
|
<table cellspacing="0" cellpadding="0">
|
164 |
|
|
|
165 |
|
|
<tr>
|
166 |
|
|
<td colspan="2">
|
167 |
|
|
<h4>Documentation</h4>
|
168 |
|
|
</td>
|
169 |
|
|
</tr>
|
170 |
|
|
<tr>
|
171 |
|
|
<td style="font-style: italic;">
|
172 |
|
|
Author:
|
173 |
|
|
</td>
|
174 |
|
|
<td>
|
175 |
|
|
<xsl:choose>
|
176 |
|
|
<xsl:when test="count(karEntryXML/entity/property[@name='author']) > 0">
|
177 |
|
|
<xsl:for-each select="karEntryXML/entity/property[@name='author']">
|
178 |
|
|
<xsl:if test="position() > 1">
|
179 |
|
|
<xsl:text>, </xsl:text>
|
180 |
|
|
</xsl:if>
|
181 |
|
|
<xsl:value-of select="configure"/>
|
182 |
|
|
</xsl:for-each>
|
183 |
|
|
</xsl:when>
|
184 |
|
|
<xsl:otherwise>
|
185 |
|
|
Unkown
|
186 |
|
|
</xsl:otherwise>
|
187 |
|
|
</xsl:choose>
|
188 |
|
|
</td>
|
189 |
|
|
</tr>
|
190 |
5360
|
tao
|
|
191 |
5501
|
tao
|
<tr>
|
192 |
|
|
<td style="font-style: italic;">
|
193 |
|
|
Version:
|
194 |
|
|
</td>
|
195 |
|
|
<td>
|
196 |
|
|
<xsl:choose>
|
197 |
|
|
<xsl:when test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']) > 0">
|
198 |
|
|
<xsl:for-each select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']">
|
199 |
|
|
<xsl:if test="position() > 1">
|
200 |
|
|
<xsl:text>, </xsl:text>
|
201 |
|
|
</xsl:if>
|
202 |
|
|
<xsl:value-of select="configure"/>
|
203 |
|
|
</xsl:for-each>
|
204 |
|
|
</xsl:when>
|
205 |
|
|
<xsl:otherwise>
|
206 |
|
|
Unkown
|
207 |
|
|
</xsl:otherwise>
|
208 |
|
|
</xsl:choose>
|
209 |
|
|
</td>
|
210 |
|
|
</tr>
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
<!-- <xsl:value-of select="/entity/property[@name='KeplerDocumentation']/property[@name='description']/configure"/> -->
|
214 |
|
|
|
215 |
|
|
|
216 |
|
|
<xsl:if test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure) > 0">
|
217 |
|
|
<tr class="top-level">
|
218 |
|
|
<td colspan="2">
|
219 |
|
|
<p><xsl:value-of select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure"/></p>
|
220 |
|
|
</td>
|
221 |
|
|
</tr>
|
222 |
|
|
</xsl:if>
|
223 |
|
|
<tr>
|
224 |
|
|
<td colspan="2">
|
225 |
|
|
<h4>Parameters</h4>
|
226 |
|
|
</td>
|
227 |
|
|
</tr>
|
228 |
|
|
<xsl:choose>
|
229 |
|
|
<xsl:when test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']) > 0">
|
230 |
|
|
<xsl:for-each select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']">
|
231 |
|
|
<tr>
|
232 |
|
|
<td style="font-style: italic;">
|
233 |
|
|
<xsl:value-of select="substring(@name, 6)"/>
|
234 |
|
|
</td>
|
235 |
|
|
<td>
|
236 |
|
|
<xsl:value-of select="configure"/>
|
237 |
|
|
</td>
|
238 |
|
|
</tr>
|
239 |
|
|
</xsl:for-each>
|
240 |
|
|
</xsl:when>
|
241 |
|
|
<xsl:otherwise>
|
242 |
|
|
<tr>
|
243 |
|
|
<td>
|
244 |
|
|
No description
|
245 |
|
|
</td>
|
246 |
|
|
</tr>
|
247 |
|
|
|
248 |
|
|
</xsl:otherwise>
|
249 |
|
|
</xsl:choose>
|
250 |
|
|
<!--<tr>
|
251 |
|
|
<td colspan="2">
|
252 |
|
|
<h4>Ports</h4>
|
253 |
|
|
</td>
|
254 |
|
|
</tr>
|
255 |
|
|
<xsl:choose>
|
256 |
|
|
<xsl:when test="count(karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']) > 0">
|
257 |
|
|
<xsl:for-each select="karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']">
|
258 |
|
|
<tr>
|
259 |
|
|
<td style="font-style: italic;">
|
260 |
|
|
<xsl:value-of select="substring(@name, 6)"/>
|
261 |
|
|
</td>
|
262 |
|
|
<td>
|
263 |
|
|
<xsl:value-of select="configure"/>
|
264 |
|
|
</td>
|
265 |
|
|
</tr>
|
266 |
|
|
</xsl:for-each>
|
267 |
|
|
</xsl:when>
|
268 |
|
|
<xsl:otherwise>
|
269 |
|
|
<tr>
|
270 |
|
|
<td style="font-style: italic;">
|
271 |
|
|
No description
|
272 |
|
|
</td>
|
273 |
|
|
</tr>
|
274 |
|
|
</xsl:otherwise>
|
275 |
|
|
</xsl:choose> -->
|
276 |
|
|
</table>
|
277 |
|
|
</td>
|
278 |
|
|
</tr>
|
279 |
|
|
|
280 |
|
|
|
281 |
|
|
</xsl:when>
|
282 |
|
|
<xsl:otherwise>
|
283 |
|
|
<!-- this is for workflow run, reporting and et al-->
|
284 |
|
|
<tr class="top-level">
|
285 |
|
|
<td>
|
286 |
|
|
<h3>
|
287 |
|
|
<xsl:value-of select="karEntryAttributes/Name"/>
|
288 |
|
|
</h3>
|
289 |
5360
|
tao
|
</td>
|
290 |
5501
|
tao
|
<td colspan="2">
|
291 |
|
|
<table cellspacing="0" cellpadding="0">
|
292 |
|
|
<tr>
|
293 |
|
|
<td>
|
294 |
|
|
<h4>Type</h4>
|
295 |
|
|
</td>
|
296 |
|
|
</tr>
|
297 |
|
|
<tr>
|
298 |
|
|
<td>
|
299 |
|
|
<xsl:value-of select="karEntryAttributes/type"/>
|
300 |
|
|
</td>
|
301 |
|
|
</tr>
|
302 |
|
|
</table>
|
303 |
|
|
</td>
|
304 |
5360
|
tao
|
</tr>
|
305 |
5501
|
tao
|
</xsl:otherwise>
|
306 |
|
|
</xsl:choose>
|
307 |
|
|
</xsl:for-each>
|
308 |
5360
|
tao
|
</table>
|
309 |
|
|
</body>
|
310 |
|
|
</html>
|
311 |
|
|
</xsl:template>
|
312 |
|
|
</xsl:stylesheet>
|