[Yanel-commits] rev 20813 - in
public/yanel/trunk/src/realms/welcome-admin/yanel: data
data/xslt resources/show-realms resources/show-realms/xslt
michi at wyona.com
michi at wyona.com
Wed Dec 13 16:58:27 CET 2006
Author: michi
Date: 2006-12-13 16:58:26 +0100 (Wed, 13 Dec 2006)
New Revision: 20813
Added:
public/yanel/trunk/src/realms/welcome-admin/yanel/data/xslt/
public/yanel/trunk/src/realms/welcome-admin/yanel/data/xslt/welcome.xsl
public/yanel/trunk/src/realms/welcome-admin/yanel/resources/show-realms/xslt/
public/yanel/trunk/src/realms/welcome-admin/yanel/resources/show-realms/xslt/info2xhtml.xsl
Log:
XSLT added
Added: public/yanel/trunk/src/realms/welcome-admin/yanel/data/xslt/welcome.xsl
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/data/xslt/welcome.xsl 2006-12-13 15:43:22 UTC (rev 20812)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/data/xslt/welcome.xsl 2006-12-13 15:58:26 UTC (rev 20813)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ >
+
+ <xsl:output method="html"/>
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
+ <title>Welcome to Yanel</title>
+ <!-- TODO: This page should be generated dynamically! -->
+ <!--
+ <link rel="neutron-introspection" type="application/neutron+xml" href="introspection-homepage.xml"/>
+ -->
+ </head>
+ <body>
+ <h1>Welcome to Yanel</h1>
+ <p> If you can see this, it means that the installation of Yanel
+ software on this system was successful. Thanks for using Yanel!</p>
+ <h2>Getting Started ...</h2>
+ <p>
+ <ul>
+ <li>What is a realm?</li>
+ <li>Create a realm from scratch.</li>
+ <li>
+ <a
+ href="yanel-website/en/documentation/import-existing-website-as-new-realm.html">Import
+ an existing website as a new realm.</a>
+ </li>
+ <li>
+ <a
+ href="yanel-website/en/documentation/how-to-add-a-new-realm.html">Add
+ an existing third-party realm.</a>
+ </li>
+ <li>What is a resource?</li>
+ <li>Create a resource from scratch.</li>
+ <li>Add an existing third-party resource.</li>
+ </ul>
+ </p>
+ <h2>Realms</h2>
+ <xsl:apply-templates select="/yanel-info/realms"/>
+ <h2>Resources</h2>
+ <xsl:apply-templates select="/yanel-info/resourcetypes"/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="realms">
+ <ul>
+ <xsl:apply-templates select="realm"/>
+ <li>Add another realm: <ul>
+ <li>
+ <a
+ href="http://svn.wyona.com/repos/public/yulup/website/yanel/config/yanel-realm-config.xml">Yulup
+ Website</a> (U: anonymous, P: anonymous)</li>
+ <li>
+ <a
+ href="http://svn.wyona.com/repos/public/yulup/demo/yanel/config/yanel-realm-config.xml">Yulup
+ Demo</a> (U: anonymous, P: anonymous)</li>
+ <li>
+ <a
+ href="http://svn.wyona.com/repos/public/osr-101/trunk/yanel/config/yanel-realm-config.xml">OSR-101
+ (Neutron Protocol Website)</a> (U: anonymous, P: anonymous)</li>
+ <li>
+ <a
+ href="http://svn.wyona.com/repos/public/yanel/trunk/src/realms/from-scratch-realm-template/yanel/config/yanel-realm-config.xml">Yanel
+ from Scratch Realm</a> (U: anonymous, P: anonymous)</li>
+ <li>...</li>
+ </ul>
+ </li>
+ </ul>
+ </xsl:template>
+
+ <xsl:template match="realm">
+ <li>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="./mountpoint" />
+ </xsl:attribute>
+ <xsl:value-of select="./name"/>
+ </a>
+ </li>
+ </xsl:template>
+
+ <xsl:template match="resourcetypes">
+ <ul>
+ <xsl:apply-templates select="resourcetype"/>
+ </ul>
+ </xsl:template>
+
+ <xsl:template match="resourcetype">
+ <li>
+ <xsl:value-of select="./localname"/>
+ </li>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: public/yanel/trunk/src/realms/welcome-admin/yanel/resources/show-realms/xslt/info2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/resources/show-realms/xslt/info2xhtml.xsl 2006-12-13 15:43:22 UTC (rev 20812)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/resources/show-realms/xslt/info2xhtml.xsl 2006-12-13 15:58:26 UTC (rev 20813)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ >
+
+ <xsl:output method="html"/>
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
+ <title>Yanel Info</title>
+ </head>
+ <body>
+ <h1>Yanel Info</h1>
+ <h2>Realms</h2>
+ <xsl:apply-templates select="/yanel-info/realms"/>
+ <h2>Resources</h2>
+ <xsl:apply-templates select="/yanel-info/resourcetypes"/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="realms">
+ <ul>
+ <xsl:apply-templates select="realm"/>
+ </ul>
+ </xsl:template>
+
+ <xsl:template match="realm">
+ <li>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="./mountpoint" />index.html
+ </xsl:attribute>
+ <xsl:value-of select="./name"/>
+ </a> ID: <xsl:value-of select="./id"/></li>
+ </xsl:template>
+
+ <xsl:template match="resourcetypes">
+ <ul>
+ <xsl:apply-templates select="resourcetype"/>
+ </ul>
+ </xsl:template>
+
+ <xsl:template match="resourcetype">
+ <li>
+ <xsl:value-of select="./localname"/>
+ </li>
+ </xsl:template>
+
+</xsl:stylesheet>
More information about the Yanel-commits
mailing list