Project

General

Profile

1
<?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
	*     '$Date: 2010-09-03 23:53:00 +0000 (Fri, 03 Sep 2010) $'
11
	* '$Revision: 5536 $'
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:sms="http://ecoinformatics.org/sms/annotation.0.9"
34
	version="1.0">
35
	<xsl:import href="annotation-root.xsl"/>
36

    
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
	<xsl:param name="attributeLabel"/>
43
	
44
	<xsl:template match="/">
45
	
46
		<html>
47
			<head>
48
				<title>Annotation Details</title>
49
				<script language="javascript" type="text/javascript" 
50
					src="{$contextURL}/style/common/jquery/jquery.js"></script>	
51
				<script language="Javascript" type="text/JavaScript"
52
					src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
53
				<script language="Javascript" type="text/JavaScript"
54
					src="{$contextURL}/style/common/branding.js" />
55
				<script language="Javascript" type="text/JavaScript"
56
					src="{$contextURL}/style/skins/semtools/search.js" />
57
				<link rel="stylesheet" type="text/css"
58
					src="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />		
59
			</head>
60

    
61
			<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
62
				<div id="content_wrapper">
63
												
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
								<xsl:call-template name="annotation"/>
87
							</xsl:for-each>
88
							
89
							
90
							<script language="JavaScript">
91
								insertTemplateClosing('<xsl:value-of select="$contextURL" />');
92
							</script>
93
							
94
						</xsl:otherwise>
95
					</xsl:choose>
96
				</div>
97
			</body>
98
			
99
		</html>
100
		
101
	</xsl:template>
102
	
103
</xsl:stylesheet>
(2-2/14)