[Yanel-commits] rev 34955 - in
public/yanel/trunk/src/contributions/resources/data-repo-sitetree:
. htdocs
michi at wyona.com
michi at wyona.com
Tue Apr 8 00:21:33 CEST 2008
Author: michi
Date: 2008-04-08 00:21:32 +0200 (Tue, 08 Apr 2008)
New Revision: 34955
Added:
public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/
public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/sitetree.xsl
Log:
XSLT added
Added: public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/sitetree.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/sitetree.xsl (rev 0)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/htdocs/sitetree.xsl 2008-04-07 22:21:32 UTC (rev 34955)
@@ -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