[Yanel-commits] rev 23269 - public/yanel/trunk/src/webapp/xslt
michi at wyona.com
michi at wyona.com
Thu Mar 15 11:30:18 CET 2007
Author: michi
Date: 2007-03-15 11:30:17 +0100 (Thu, 15 Mar 2007)
New Revision: 23269
Modified:
public/yanel/trunk/src/webapp/xslt/login-screen.xsl
Log:
namespace fixed
Modified: public/yanel/trunk/src/webapp/xslt/login-screen.xsl
===================================================================
--- public/yanel/trunk/src/webapp/xslt/login-screen.xsl 2007-03-15 10:29:56 UTC (rev 23268)
+++ public/yanel/trunk/src/webapp/xslt/login-screen.xsl 2007-03-15 10:30:17 UTC (rev 23269)
@@ -4,21 +4,27 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:yanel="http://www.wyona.org/yanel/1.0"
>
+<!--
<xsl:output method="xhtml" encoding="UTF-8"/>
+-->
+ <xsl:param name="yanel.back2realm" select="'BACK2REALM_IS_NULL'"/>
+ <xsl:param name="yanel.reservedPrefix" select="'RESERVEDPREFIX_IS_NULL'"/>
+
<xsl:template match="/">
<html>
<head>
<title>Yanel - Login</title>
+ <link rel="stylesheet" href="{$yanel.back2realm}{$yanel.reservedPrefix}/yanel-css/global.css" type="text/css"/>
</head>
<body>
- <h1>Login to realm <xsl:value-of select="child::node()/realm/@name"/></h1>
- <h4>Authorization was denied. Please, enter your username and password.</h4>
- <p><a href="?yanel.usecase=create&yanel.format=xml">Show XML source</a> </p>
+ <h1>Login to realm "<xsl:value-of select="/yanel:yanel/yanel:realm/@yanel:name"/>"</h1>
+ <p>Authorization was denied. Please, enter your username and password.</p>
+ <xsl:apply-templates select="/yanel:yanel/yanel:message"/>
<table>
- <tr><td><p><ul><xsl:apply-templates/></ul></p></td></tr>
<tr><td>
<form method="POST">
<p>
@@ -42,26 +48,38 @@
</form>
</td></tr>
</table>
+ <xsl:apply-templates select="/yanel:yanel/yanel:ssl"/>
+
+
+ <hr/>
+ <p>
+ <xsl:choose>
+ <xsl:when test="/yanel:yanel/yanel:request/@yanel:qs">
+ <a href="?{/yanel:yanel/yanel:request/@yanel:qs}&yanel.format=xml">Show XML source</a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="?&yanel.format=xml">Show XML source</a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </p>
+ <xsl:apply-templates select="/yanel:yanel/yanel:request"/>
+ <xsl:apply-templates select="/yanel:yanel/yanel:realm"/>
</body>
</html>
</xsl:template>
- <xsl:template match="message">
- <li> Note:
- <ul><li> <xsl:value-of select="."/></li></ul>
- </li>
+ <xsl:template match="yanel:message">
+ <div id="message"><xsl:value-of select="."/></div>
</xsl:template>
- <xsl:template match="request">
- <li>Request:
- <ul><li><xsl:value-of select="@urlqs"/></li></ul>
- </li>
+ <xsl:template match="yanel:request">
+ Request: <xsl:value-of select="@yanel:urlqs"/>
</xsl:template>
- <xsl:template match="ssl">
+ <xsl:template match="yanel:ssl">
<li>
<xsl:choose>
- <xsl:when test="contains(@status, 'ON')">
+ <xsl:when test="contains(@yanel:status, 'ON')">
<p>SSL support is ON</p>
</xsl:when>
<xsl:otherwise>
@@ -71,13 +89,14 @@
</li>
</xsl:template>
- <xsl:template match="realm">
- <li> Realm info:
- <ul>
- <li>Name: <xsl:value-of select="@name"/></li>
- <li>Mount Point: <xsl:value-of select="@mount-point"/></li>
- </ul>
- </li>
+ <xsl:template match="yanel:realm">
+ <p>
+ Realm info:
+ <ul>
+ <li>Name: <xsl:value-of select="@yanel:name"/></li>
+ <li>Mount Point: <xsl:value-of select="@yanel:mount-point"/></li>
+ </ul>
+ </p>
</xsl:template>
</xsl:stylesheet>
More information about the Yanel-commits
mailing list