[Yanel-commits] rev 21268 - public/yanel/trunk/src/contributions/resources/calendar/xslt

michi at wyona.com michi at wyona.com
Fri Dec 29 15:29:52 CET 2006


Author: michi
Date: 2006-12-29 15:29:50 +0100 (Fri, 29 Dec 2006)
New Revision: 21268

Modified:
   public/yanel/trunk/src/contributions/resources/calendar/xslt/xml2ics.xsl
Log:
refactored

Modified: public/yanel/trunk/src/contributions/resources/calendar/xslt/xml2ics.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/calendar/xslt/xml2ics.xsl	2006-12-29 14:24:25 UTC (rev 21267)
+++ public/yanel/trunk/src/contributions/resources/calendar/xslt/xml2ics.xsl	2006-12-29 14:29:50 UTC (rev 21268)
@@ -19,10 +19,7 @@
 LAST-MODIFIED:<xsl:value-of select="@last-modified"/>
 DTSTAMP:<xsl:value-of select="@dtstamp"/>
 UID:<xsl:value-of select="@uid"/>
-SUMMARY:<xsl:value-of select="cal:summary"/>
-CLASS:PUBLIC<xsl:apply-templates select="cal:dtstart"/><xsl:apply-templates select="cal:dtend"/>
-LOCATION:<xsl:value-of select="cal:location"/>
-CATEGORIES:Customer
+<xsl:apply-templates select="cal:summary"/><xsl:apply-templates select="@class"/><xsl:apply-templates select="cal:dtstart"/><xsl:apply-templates select="cal:dtend"/><xsl:apply-templates select="cal:location"/><xsl:apply-templates select="@categories"/>
 END:VEVENT
 </xsl:template>
 
@@ -32,4 +29,16 @@
 <xsl:template match="cal:dtend">
 DTEND;TZID=<xsl:value-of select="@tzid"/></xsl:template>
 
+<xsl:template match="cal:location">
+LOCATION:<xsl:value-of select="."/></xsl:template>
+
+<xsl:template match="cal:summary">
+SUMMARY:<xsl:value-of select="."/></xsl:template>
+
+<xsl:template match="@class">
+CLASS:<xsl:value-of select="."/></xsl:template>
+
+<xsl:template match="@categories">
+CATEGORIES:<xsl:value-of select="."/></xsl:template>
+
 </xsl:stylesheet>




More information about the Yanel-commits mailing list