1 |
5536
|
leinfelder
|
<?xml version="1.0"?>
|
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 |
5541
|
leinfelder
|
* '$Date: 2010-09-03 23:53:00 +0000 (Fri, 03 Sep 2010) $'
|
11 |
|
|
* '$Revision: 5536 $'
|
12 |
5536
|
leinfelder
|
*
|
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 |
5951
|
leinfelder
|
xmlns:sms="http://ecoinformatics.org/sms/annotation.1.0beta1"
|
34 |
5541
|
leinfelder
|
version="1.0">
|
35 |
|
|
<xsl:import href="annotation-root.xsl"/>
|
36 |
5536
|
leinfelder
|
|
37 |
|
|
<xsl:output method="html" />
|
38 |
|
|
<xsl:param name="sessid" />
|
39 |
|
|
<xsl:param name="qformat">semtools</xsl:param>
|
40 |
|
|
<xsl:param name="enableediting">false</xsl:param>
|
41 |
|
|
<xsl:param name="contextURL"/>
|
42 |
5721
|
leinfelder
|
<xsl:param name="attributeLabel"/>
|
43 |
|
|
|
44 |
5541
|
leinfelder
|
<xsl:template match="/">
|
45 |
5721
|
leinfelder
|
|
46 |
5541
|
leinfelder
|
<html>
|
47 |
|
|
<head>
|
48 |
5591
|
leinfelder
|
<title>Annotation Details</title>
|
49 |
5696
|
leinfelder
|
<script language="javascript" type="text/javascript"
|
50 |
5703
|
leinfelder
|
src="{$contextURL}/style/common/jquery/jquery.js"></script>
|
51 |
5541
|
leinfelder
|
<script language="Javascript" type="text/JavaScript"
|
52 |
5697
|
leinfelder
|
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
|
53 |
5541
|
leinfelder
|
<script language="Javascript" type="text/JavaScript"
|
54 |
5697
|
leinfelder
|
src="{$contextURL}/style/common/branding.js" />
|
55 |
5696
|
leinfelder
|
<script language="Javascript" type="text/JavaScript"
|
56 |
5721
|
leinfelder
|
src="{$contextURL}/style/skins/semtools/search.js" />
|
57 |
|
|
<link rel="stylesheet" type="text/css"
|
58 |
|
|
src="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
|
59 |
5541
|
leinfelder
|
</head>
|
60 |
|
|
|
61 |
|
|
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
62 |
5578
|
leinfelder
|
<div id="content_wrapper">
|
63 |
5721
|
leinfelder
|
|
64 |
|
|
<!-- single attribute detail -->
|
65 |
|
|
<xsl:choose>
|
66 |
|
|
<xsl:when test="$attributeLabel != ''">
|
67 |
|
|
|
68 |
|
|
<xsl:call-template name="attributeDetail">
|
69 |
|
|
<xsl:with-param name="attributeLabel" select="$attributeLabel" />
|
70 |
|
|
</xsl:call-template>
|
71 |
|
|
|
72 |
|
|
</xsl:when>
|
73 |
|
|
<xsl:otherwise>
|
74 |
|
|
|
75 |
|
|
<script language="JavaScript">
|
76 |
|
|
insertTemplateOpening('<xsl:value-of select="$contextURL" />');
|
77 |
|
|
</script>
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
<!-- annotation details -->
|
81 |
|
|
<div class="group group_border">
|
82 |
|
|
<h3>Semantic Annotation</h3>
|
83 |
|
|
</div>
|
84 |
|
|
|
85 |
|
|
<xsl:for-each select="/*[local-name()='annotation']">
|
86 |
5727
|
leinfelder
|
<xsl:call-template name="annotation">
|
87 |
|
|
<xsl:with-param name="showAll" select="'true'"/>
|
88 |
|
|
</xsl:call-template>
|
89 |
5721
|
leinfelder
|
</xsl:for-each>
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
<script language="JavaScript">
|
93 |
|
|
insertTemplateClosing('<xsl:value-of select="$contextURL" />');
|
94 |
|
|
</script>
|
95 |
|
|
|
96 |
|
|
</xsl:otherwise>
|
97 |
|
|
</xsl:choose>
|
98 |
5589
|
leinfelder
|
</div>
|
99 |
5541
|
leinfelder
|
</body>
|
100 |
5540
|
leinfelder
|
|
101 |
5541
|
leinfelder
|
</html>
|
102 |
5721
|
leinfelder
|
|
103 |
5541
|
leinfelder
|
</xsl:template>
|
104 |
5536
|
leinfelder
|
|
105 |
|
|
</xsl:stylesheet>
|