2 <xsl:stylesheet version=
"1.0"
3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
4 xmlns:
atom=
"http://www.w3.org/2005/Atom"
5 xmlns:
gd=
"http://schemas.google.com/g/2005">
7 <xsl:output method=
"xml" indent=
"yes"/>
9 <xsl:template match=
"child::entry">
13 <xsl:value-of select=
"descendant::atom:content"/>
19 <xsl:value-of select=
"descendant::atom:author/atom:name"/>
25 <xsl:value-of select=
"descendant::atom:published"/>
32 <xsl:when test=
"descendant::gd:when/@endTime">
33 <xsl:value-of select=
"descendant::gd:when/@endTime"/>
36 <xsl:variable name=
"recurrence">
37 <xsl:value-of select=
"descendant::gd:recurrence"/>
41 <xsl:when test=
"substring-after($recurrence,'DTEND;VALUE=DATE:')">
42 <xsl:value-of select=
"substring-before(substring-after($recurrence, 'DTEND;VALUE=DATE:'),'RRULE:')"/>
45 <xsl:value-of select=
"substring-after(substring-before(substring-after($recurrence,'DTEND;TZID='),
58 <xsl:when test=
"descendant::gd:when/@startTime">
59 <xsl:value-of select=
"descendant::gd:when/@startTime"/>
62 <!-- TODO: remove trailing empty space... -->
63 <xsl:variable name=
"recurrence">
64 <xsl:value-of select=
"descendant::gd:recurrence"/>
68 <xsl:when test=
"substring-after($recurrence, 'DTSTART;VALUE=DATE:')">
69 <xsl:value-of select=
"substring-before(substring-after($recurrence, 'DTSTART;VALUE=DATE:'),'DTEND')"/>
72 <xsl:value-of select=
"substring-after(substring-before(substring-after($recurrence,'DTSTART;TZID='),
84 <xsl:value-of select=
"descendant::atom:title"/>
90 <xsl:value-of select=
"descendant::atom:updated"/>
96 <xsl:value-of select=
"descendant::gd:where/@valueString"/>
100 <xsl:if test=
"descendant::gd:recurrence">
102 <!-- TODO: remove trailing empty space... -->
103 <xsl:variable name=
"recurrence">
104 <xsl:value-of select=
"descendant::gd:recurrence"/>
108 <xsl:value-of select=
"substring-before(substring-after($recurrence,
109 'RRULE:FREQ='),';BYDAY=')"/>
112 <xsl:value-of select=
"substring-after($recurrence,';UNTIL=')"/>
115 <xsl:value-of select=
"substring-before(substring-after($recurrence,
123 <xsl:variable name=
"status">
124 <xsl:value-of select=
"descendant::gd:eventStatus/@value"/>
127 <xsl:when test=
"substring-after($status, '#event.') =
128 'confirmed'">CONFIRMED
</xsl:when>
129 <xsl:otherwise>CANCELLED
</xsl:otherwise>
136 <xsl:value-of select=
"descendant::atom:id"/>
142 <xsl:value-of select=
"descendant::atom:link[@rel='edit']/@href"/>