1 |
510
|
bojilova
|
<?xml version="1.0"?>
|
2 |
|
|
<!--
|
3 |
|
|
* login.xsl
|
4 |
|
|
*
|
5 |
|
|
* Authors: Jivka Bojilova
|
6 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
* Created: 2000 July 20
|
10 |
|
|
* File Info: '$Id$'
|
11 |
|
|
*
|
12 |
|
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
13 |
|
|
* convert an XML file with information about login action
|
14 |
|
|
* into an HTML format suitable for rendering with modern web browsers.
|
15 |
|
|
-->
|
16 |
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
17 |
|
|
<xsl:output method="html"/>
|
18 |
|
|
|
19 |
|
|
<xsl:template match="/">
|
20 |
|
|
<html>
|
21 |
|
|
<xsl:apply-templates name="login"/>
|
22 |
|
|
</html>
|
23 |
|
|
</xsl:template>
|
24 |
|
|
|
25 |
|
|
<xsl:template match="*" name="login">
|
26 |
|
|
<xsl:choose>
|
27 |
|
|
|
28 |
|
|
<xsl:when test="name(self::node())='login'">
|
29 |
|
|
<head>
|
30 |
|
|
<link rel="stylesheet" type="text/css"
|
31 |
|
|
href="@html-path@/style/rowcol.css" />
|
32 |
|
|
<script language="JavaScript">
|
33 |
|
|
<![CDATA[
|
34 |
|
|
window.location="@html-path@/metacat.html"
|
35 |
|
|
]]>
|
36 |
|
|
</script>
|
37 |
|
|
</head>
|
38 |
|
|
<body class="emlbody">
|
39 |
|
|
<noscript>
|
40 |
|
|
Please click <a href="@html-path@/metacat.html">here</a>
|
41 |
|
|
to enter Metacat. To disable this message in the future
|
42 |
|
|
please enable JavaScript on your browser.
|
43 |
|
|
</noscript>
|
44 |
|
|
</body>
|
45 |
|
|
</xsl:when>
|
46 |
|
|
|
47 |
|
|
<xsl:when test="name(self::node())='unauth_login'">
|
48 |
|
|
<head>
|
49 |
|
|
<link rel="stylesheet" type="text/css"
|
50 |
|
|
href="@html-path@/style/rowcol.css" />
|
51 |
|
|
<script language="JavaScript">
|
52 |
|
|
<![CDATA[
|
53 |
|
|
window.location="@html-path@/login.html"
|
54 |
|
|
]]>
|
55 |
|
|
</script>
|
56 |
|
|
</head>
|
57 |
|
|
<body class="emlbody">
|
58 |
|
|
<noscript>
|
59 |
|
|
Please click <a href="@html-path@/login.html">here</a>
|
60 |
|
|
to enter Metacat. To disable this message in the future
|
61 |
|
|
please enable JavaScript on your browser.
|
62 |
|
|
</noscript>
|
63 |
|
|
</body>
|
64 |
|
|
</xsl:when>
|
65 |
|
|
|
66 |
|
|
<xsl:when test="name(self::node())='logout'">
|
67 |
|
|
<head>
|
68 |
|
|
<link rel="stylesheet" type="text/css"
|
69 |
|
|
href="@html-path@/style/rowcol.css" />
|
70 |
|
|
<script language="JavaScript">
|
71 |
|
|
<![CDATA[
|
72 |
|
|
window.location="@html-path@/index.html"
|
73 |
|
|
]]>
|
74 |
|
|
</script>
|
75 |
|
|
</head>
|
76 |
|
|
<body class="emlbody">
|
77 |
|
|
<noscript>
|
78 |
|
|
Please click <a href="@html-path@/index.html">here</a>
|
79 |
|
|
to enter Metacat. To disable this message in the future
|
80 |
|
|
please enable JavaScript on your browser.
|
81 |
|
|
</noscript>
|
82 |
|
|
</body>
|
83 |
|
|
</xsl:when>
|
84 |
|
|
|
85 |
|
|
<xsl:when test="name(self::node())='error_login'">
|
86 |
|
|
<head>
|
87 |
|
|
<link rel="stylesheet" type="text/css"
|
88 |
|
|
href="@html-path@/style/rowcol.css" />
|
89 |
|
|
</head>
|
90 |
|
|
<body class="emlbody">
|
91 |
|
|
<p style="color:red"> <b> Error Page </b> </p>
|
92 |
|
|
<p> <xsl:value-of select="message"/> </p>
|
93 |
|
|
<p> <a href="@html-path@/login.html">Try again</a>
|
94 |
|
|
<a href="@html-path@/index.html">Continue</a> </p>
|
95 |
|
|
</body>
|
96 |
|
|
</xsl:when>
|
97 |
|
|
|
98 |
|
|
</xsl:choose>
|
99 |
|
|
</xsl:template>
|
100 |
|
|
|
101 |
|
|
</xsl:stylesheet>
|