[Yanel-commits] rev 20606 - in public/yanel/trunk/src/realms/yanel-website/content: rtd xslt

michi at wyona.com michi at wyona.com
Tue Dec 5 23:39:44 CET 2006


Author: michi
Date: 2006-12-05 23:39:43 +0100 (Tue, 05 Dec 2006)
New Revision: 20606

Added:
   public/yanel/trunk/src/realms/yanel-website/content/rtd/ics.rtd
   public/yanel/trunk/src/realms/yanel-website/content/xslt/dir2ics.xsl
Log:
calendar stuff added

Added: public/yanel/trunk/src/realms/yanel-website/content/rtd/ics.rtd
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/rtd/ics.rtd	2006-12-05 22:39:18 UTC (rev 20605)
+++ public/yanel/trunk/src/realms/yanel-website/content/rtd/ics.rtd	2006-12-05 22:39:43 UTC (rev 20606)
@@ -0,0 +1,3 @@
+<{http://www.wyona.org/yanel/resource/1.0}directory/>
+xslt: /xslt/dir2ics.xsl
+mime-type: text/plain

Added: public/yanel/trunk/src/realms/yanel-website/content/xslt/dir2ics.xsl
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/xslt/dir2ics.xsl	2006-12-05 22:39:18 UTC (rev 20605)
+++ public/yanel/trunk/src/realms/yanel-website/content/xslt/dir2ics.xsl	2006-12-05 22:39:43 UTC (rev 20606)
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:dir="http://apache.org/cocoon/directory/2.0"
+  xmlns:yanel="http://www.wyona.org/yanel/resource/directory/1.0"
+>
+
+<xsl:output method="text"/>
+
+<xsl:template match="/">
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
+<xsl:apply-templates select="/dir:directory/*"/>
+</xsl:template>
+
+
+<xsl:template match="dir:directory">
+<xsl:comment>
+Do NOT show collections: <xsl:value-of select="@name"/>, <xsl:value-of select="@path"/>
+</xsl:comment>
+</xsl:template>
+
+<xsl:template match="dir:file">
+BEGIN:VEVENT
+UID:<xsl:value-of select="@name"/>
+END:VEVENT
+<!--
+<link href="{@name}"/>
+<xsl:comment>
+<xsl:value-of select="@path"/>
+</xsl:comment>
+-->
+</xsl:template>
+
+</xsl:stylesheet>




More information about the Yanel-commits mailing list