[Yanel-commits] rev 34865 - public/yanel/trunk/src/webapp/xslt
michi at wyona.com
michi at wyona.com
Sat Apr 5 13:34:55 CEST 2008
Author: michi
Date: 2008-04-05 13:34:55 +0200 (Sat, 05 Apr 2008)
New Revision: 34865
Added:
public/yanel/trunk/src/webapp/xslt/sitetree.xsl
Log:
sitetree xslt started
Added: public/yanel/trunk/src/webapp/xslt/sitetree.xsl
===================================================================
--- public/yanel/trunk/src/webapp/xslt/sitetree.xsl (rev 0)
+++ public/yanel/trunk/src/webapp/xslt/sitetree.xsl 2008-04-05 11:34:55 UTC (rev 34865)
@@ -0,0 +1,42 @@
+<?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.back2realm" select="'BACK2REALM_IS_NULL'"/>
+ <xsl:param name="yanel.reservedPrefix" select="'RESERVEDPREFIX_IS_NULL'"/>
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>Sitetree - Yanel</title>
+ <link rel="stylesheet" href="{$yanel.back2realm}{$yanel.reservedPrefix}/yanel-css/global.css" type="text/css"/>
+ </head>
+ <body>
+ <h1>Sitetree</h1>
+ <a href="?yanel.resource.viewid=xml">XML</a>
+ <xsl:apply-templates select="/sitetree/collection"/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="collection">
+ <li><xsl:value-of select="@name"/></li>
+ <ul>
+ <xsl:apply-templates/>
+ </ul>
+ </xsl:template>
+
+ <xsl:template match="resource">
+ <li><a href="..{@path}.html"><xsl:value-of select="@name"/></a></li>
+ </xsl:template>
+
+</xsl:stylesheet>
More information about the Yanel-commits
mailing list