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 |
|
|
* '$Author: leinfelder $'
|
10 |
|
|
* '$Date: 2008-06-17 13:16:32 -0700 (Tue, 17 Jun 2008) $'
|
11 |
|
|
* '$Revision: 4006 $'
|
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 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 |
|
|
<style type="text/css">
|
55 |
|
|
<xsl:text disable-output-escaping="yes">
|
56 |
|
|
body, a, p, td, tr, h3, h2, h1
|
57 |
|
|
{
|
58 |
|
|
font-family: Arial, Helvetica, sans-serif;
|
59 |
|
|
}
|
60 |
|
|
|
61 |
|
|
body
|
62 |
|
|
{
|
63 |
|
|
background: #ece9d8;
|
64 |
|
|
margin: 0;
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
tr.top-level > td
|
68 |
|
|
{
|
69 |
|
|
text-align: left;
|
70 |
|
|
}
|
71 |
|
|
|
72 |
|
|
tr.top-level > td
|
73 |
|
|
{
|
74 |
|
|
background: white;
|
75 |
|
|
border: 0.125em ridge white;
|
76 |
|
|
padding: 0.375em;
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
td tr
|
80 |
|
|
{
|
81 |
|
|
vertical-align: top;
|
82 |
|
|
}
|
83 |
|
|
|
84 |
|
|
td td
|
85 |
|
|
{
|
86 |
|
|
padding: 0.1875em;
|
87 |
|
|
}
|
88 |
|
|
</xsl:text>
|
89 |
|
|
</style>
|
90 |
|
|
</head>
|
91 |
|
|
|
92 |
|
|
<body>
|
93 |
|
|
<table cellspacing="8" cellpadding="0" style="border: none; width: 100%;" class="main">
|
94 |
|
|
<colgroup></colgroup>
|
95 |
|
|
<colgroup style="width: 75%;"></colgroup>
|
96 |
|
|
<colgroup style="width: 25%;"></colgroup>
|
97 |
|
|
|
98 |
|
|
<tr class="top-level">
|
99 |
|
|
<td colspan="2">
|
100 |
|
|
<h1>
|
101 |
|
|
<span style="padding-right: 2em;">
|
102 |
|
|
<xsl:value-of select="//karEntry/karEntryXML/entity/@name"/>
|
103 |
|
|
</span>
|
104 |
|
|
|
105 |
|
|
<span style="font-size: smaller;">
|
106 |
|
|
<xsl:text> (</xsl:text>
|
107 |
|
|
<xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='class']/@value"/>
|
108 |
|
|
<xsl:text>)</xsl:text>
|
109 |
|
|
</span>
|
110 |
|
|
</h1>
|
111 |
|
|
</td>
|
112 |
|
|
|
113 |
|
|
<td>
|
114 |
|
|
<table cellspacing="0" cellpadding="0">
|
115 |
|
|
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='author']) > 0">
|
116 |
|
|
<tr>
|
117 |
|
|
<td style="font-style: italic;">
|
118 |
|
|
Author:
|
119 |
|
|
</td>
|
120 |
|
|
|
121 |
|
|
<td>
|
122 |
|
|
<xsl:for-each select="//karEntry/karEntryXML/entity/property[@name='author']">
|
123 |
|
|
<xsl:if test="position() > 1">
|
124 |
|
|
<xsl:text>, </xsl:text>
|
125 |
|
|
</xsl:if>
|
126 |
|
|
|
127 |
|
|
<xsl:value-of select="configure"/>
|
128 |
|
|
</xsl:for-each>
|
129 |
|
|
</td>
|
130 |
|
|
</tr>
|
131 |
|
|
</xsl:if>
|
132 |
|
|
|
133 |
|
|
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']) > 0">
|
134 |
|
|
<tr>
|
135 |
|
|
<td style="font-style: italic;">
|
136 |
|
|
Version:
|
137 |
|
|
</td>
|
138 |
|
|
|
139 |
|
|
<td>
|
140 |
|
|
<xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='version']/configure"/>
|
141 |
|
|
</td>
|
142 |
|
|
</tr>
|
143 |
|
|
</xsl:if>
|
144 |
|
|
</table>
|
145 |
|
|
</td>
|
146 |
|
|
</tr>
|
147 |
|
|
|
148 |
|
|
<tr class="top-level" style="vertical-align: top;">
|
149 |
|
|
<td>
|
150 |
|
|
<img alt="Actor Image">
|
151 |
|
|
<xsl:attribute name="src">
|
152 |
|
|
<xsl:text>metacat?qformat=</xsl:text>
|
153 |
|
|
<xsl:value-of select="$qformat"/>
|
154 |
|
|
<xsl:text>&sessionid=</xsl:text>
|
155 |
|
|
<xsl:value-of select="$sessid"/>
|
156 |
|
|
<xsl:text>&action=read&docid=</xsl:text>
|
157 |
|
|
<!--xsl:value-of select="./docid"/--><xsl:text>PLASMA</xsl:text>
|
158 |
|
|
</xsl:attribute>
|
159 |
|
|
</img>
|
160 |
|
|
|
161 |
|
|
<div style="text-align: center;">
|
162 |
5367
|
tao
|
<xsl:variable name="karDocid">
|
163 |
|
|
<xsl:call-template name="extractDocidFromLsid">
|
164 |
|
|
<xsl:with-param name="lsidString" select="//mainAttributes/lsid" />
|
165 |
|
|
</xsl:call-template>
|
166 |
|
|
</xsl:variable>
|
167 |
|
|
|
168 |
5360
|
tao
|
<a>
|
169 |
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>-->
|
170 |
|
|
<xsl:attribute name="href">
|
171 |
|
|
<xsl:text>metacat?</xsl:text>
|
172 |
|
|
<xsl:text>&action=read&docid=</xsl:text>
|
173 |
|
|
<xsl:value-of select="$karDocid"/>
|
174 |
|
|
</xsl:attribute>
|
175 |
5360
|
tao
|
<xsl:text>Download</xsl:text>
|
176 |
|
|
</a>
|
177 |
|
|
</div>
|
178 |
|
|
</td>
|
179 |
|
|
|
180 |
|
|
<td colspan="2">
|
181 |
|
|
<!-- <xsl:value-of select="/entity/property[@name='KeplerDocumentation']/property[@name='description']/configure"/> -->
|
182 |
|
|
|
183 |
|
|
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure) > 0">
|
184 |
|
|
<p><xsl:value-of select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[@name='userLevelDocumentation']/configure"/></p>
|
185 |
|
|
</xsl:if>
|
186 |
|
|
</td>
|
187 |
|
|
</tr>
|
188 |
|
|
|
189 |
|
|
<tr class="top-level">
|
190 |
|
|
<td colspan="3">
|
191 |
|
|
<table cellspacing="0" cellpadding="0">
|
192 |
|
|
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']) > 0">
|
193 |
|
|
<tr>
|
194 |
|
|
<td colspan="2">
|
195 |
|
|
<h2>Parameters</h2>
|
196 |
|
|
</td>
|
197 |
|
|
</tr>
|
198 |
|
|
|
199 |
|
|
<xsl:for-each select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='prop:']">
|
200 |
|
|
<tr>
|
201 |
|
|
<td style="font-style: italic;">
|
202 |
|
|
<xsl:value-of select="substring(@name, 6)"/>
|
203 |
|
|
</td>
|
204 |
|
|
|
205 |
|
|
<td>
|
206 |
|
|
<xsl:value-of select="configure"/>
|
207 |
|
|
</td>
|
208 |
|
|
</tr>
|
209 |
|
|
</xsl:for-each>
|
210 |
|
|
</xsl:if>
|
211 |
|
|
|
212 |
|
|
<xsl:if test="count(//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']) > 0">
|
213 |
|
|
<tr>
|
214 |
|
|
<td colspan="2">
|
215 |
|
|
<h2>Ports</h2>
|
216 |
|
|
</td>
|
217 |
|
|
</tr>
|
218 |
|
|
|
219 |
|
|
<xsl:for-each select="//karEntry/karEntryXML/entity/property[@name='KeplerDocumentation']/property[substring(@name, 1, 5)='port:']">
|
220 |
|
|
<tr>
|
221 |
|
|
<td style="font-style: italic;">
|
222 |
|
|
<xsl:value-of select="substring(@name, 6)"/>
|
223 |
|
|
</td>
|
224 |
|
|
|
225 |
|
|
<td>
|
226 |
|
|
<xsl:value-of select="configure"/>
|
227 |
|
|
</td>
|
228 |
|
|
</tr>
|
229 |
|
|
</xsl:for-each>
|
230 |
|
|
</xsl:if>
|
231 |
|
|
</table>
|
232 |
|
|
</td>
|
233 |
|
|
</tr>
|
234 |
|
|
</table>
|
235 |
|
|
</body>
|
236 |
|
|
</html>
|
237 |
|
|
</xsl:template>
|
238 |
|
|
</xsl:stylesheet>
|