1
|
<?xml version="1.0"?>
|
2
|
<!--
|
3
|
* '$RCSfile$'
|
4
|
* Authors: Jivka Bojilova
|
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: 2012-09-24 15:41:06 -0700 (Mon, 24 Sep 2012) $'
|
11
|
* '$Revision: 7394 $'
|
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 with information about login action
|
29
|
* into an HTML format suitable for rendering with modern web browsers.
|
30
|
-->
|
31
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
32
|
<xsl:output method="html"/>
|
33
|
|
34
|
<xsl:template match="/">
|
35
|
<html>
|
36
|
<xsl:apply-templates/>
|
37
|
</html>
|
38
|
</xsl:template>
|
39
|
|
40
|
<xsl:template match="*" name="login">
|
41
|
<xsl:choose>
|
42
|
|
43
|
<xsl:when test="name(self::node())='login'">
|
44
|
<head>
|
45
|
<link rel="stylesheet" type="text/css" href="./style/skins/dataone/dataone.css" />
|
46
|
<script language="JavaScript">
|
47
|
<![CDATA[
|
48
|
window.location="./style/skins/dataone/index.jsp"
|
49
|
]]>
|
50
|
</script>
|
51
|
</head>
|
52
|
<body class="emlbody">
|
53
|
</body>
|
54
|
</xsl:when>
|
55
|
|
56
|
<xsl:when test="name(self::node())='unauth_login'">
|
57
|
<head>
|
58
|
<link rel="stylesheet" type="text/css" href="./style/skins/dataone/dataone.css" />
|
59
|
<script language="JavaScript">
|
60
|
<![CDATA[
|
61
|
window.location="./style/skins/dataone/login.jsp"
|
62
|
]]>
|
63
|
</script>
|
64
|
</head>
|
65
|
<body class="emlbody">
|
66
|
</body>
|
67
|
</xsl:when>
|
68
|
|
69
|
<xsl:when test="name(self::node())='logout'">
|
70
|
<head>
|
71
|
<link rel="stylesheet" type="text/css" href="./style/skins/dataone/dataone.css" />
|
72
|
<script language="JavaScript">
|
73
|
<![CDATA[
|
74
|
window.location="./style/skins/dataone/index.jsp"
|
75
|
]]>
|
76
|
</script>
|
77
|
</head>
|
78
|
<body class="emlbody">
|
79
|
</body>
|
80
|
</xsl:when>
|
81
|
|
82
|
<xsl:when test="name(self::node())='error_login'">
|
83
|
<head>
|
84
|
<link rel="stylesheet" type="text/css" href="./style/skins/dataone/dataone.css" />
|
85
|
</head>
|
86
|
<body class="emlbody">
|
87
|
<p style="color:red"> <b> Error Page </b> </p>
|
88
|
<p> <xsl:value-of select="message"/> </p>
|
89
|
<p> <a href="./style/skins/dataone/login.jsp">Try again</a>
|
90
|
<a href="./style/skins/dataone/index.jsp">Continue</a> </p>
|
91
|
</body>
|
92
|
</xsl:when>
|
93
|
|
94
|
</xsl:choose>
|
95
|
</xsl:template>
|
96
|
|
97
|
</xsl:stylesheet>
|