[Yanel-commits] rev 23680 -
public/yanel/trunk/src/resources/add-realm/xslt
michi at wyona.com
michi at wyona.com
Thu Apr 12 10:47:14 CEST 2007
Author: michi
Date: 2007-04-12 10:47:13 +0200 (Thu, 12 Apr 2007)
New Revision: 23680
Added:
public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl
Log:
add from existing website
Added: public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl
===================================================================
--- public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl 2007-04-12 07:31:28 UTC (rev 23679)
+++ public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-existing-website.xsl 2007-04-12 08:47:13 UTC (rev 23680)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ 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.back2context" select="''" />
+
+ <xsl:template match="/">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Add Realm From Existing Website</title>
+ </head>
+ <body>
+ <h1>Add Realm From Existing Website</h1>
+ <a href="?yanel.resource.viewid=xml">Show XML</a>
+
+ <xsl:choose>
+ <xsl:when test="/yanel:add-realm/yanel:from-existing-website/yanel:realm-created">
+ <p>Realm has been created and registered</p>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:not-valid"/>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:valid"/>
+ <form>
+ <xsl:if test="/yanel:add-realm/yanel:from-existing-website/yanel:valid">
+ <input type="hidden" name="confirm" value="true"/>
+ </xsl:if>
+ <table>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-existing-website/yanel:parameter"/>
+ <xsl:choose>
+ <xsl:when test="/yanel:add-realm/yanel:from-existing-website/yanel:valid">
+ <tr><td colspan="2" align="right"><input type="submit" name="submit-from-existing-website" value="Yes, Add Realm"/></td></tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr><td colspan="2" align="right"><input type="submit" name="submit-from-existing-website" value="Add Realm"/></td></tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </form>
+ </xsl:otherwise>
+ </xsl:choose>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="yanel:parameter">
+ <xsl:apply-templates select="@yanel:exception"/>
+ <xsl:choose>
+ <xsl:when test="@yanel:configuration-value">
+ <tr><td><xsl:value-of select="@yanel:name"/></td><td><xsl:value-of select="@yanel:configuration-value"/></td></tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr><td><xsl:value-of select="@yanel:name"/></td><td><input type="text" name="{@yanel:name}" value="{@yanel:value}"/></td></tr>
+ <tr><td> </td><td align="right">(i.e. <xsl:value-of select="@yanel:sample-value"/>)</td></tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="@yanel:exception">
+ <tr><td colspan="2"><font color="red">Exception:</font> <xsl:value-of select="."/></td></tr>
+ </xsl:template>
+
+ <xsl:template match="yanel:not-valid">
+ <p>Something is wrong with one or more input parameters. Please see below for more details.</p>
+ </xsl:template>
+
+ <xsl:template match="yanel:valid">
+ <p>All input parameters are valid. Do you want to create a new realm from scratch with the parameters below?</p>
+ </xsl:template>
+
+</xsl:stylesheet>
More information about the Yanel-commits
mailing list