2 <xsl:stylesheet version=
"1.0"
3 xmlns=
"http://www.w3.org/2005/Atom"
4 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 xmlns:
gd=
"http://schemas.google.com/g/2005">
7 <xsl:output method=
"xml" indent=
"yes"/>
9 <xsl:template match=
"child::event">
13 <xsl:value-of select=
"descendant::Uid/Content"/>
17 <xsl:value-of select=
"descendant::Created/Content"/>
21 <xsl:value-of select=
"descendant::LastModified/Content"/>
25 <xsl:attribute name=
"scheme">http://schemas.google.com/g/
2005#kind
</xsl:attribute>
26 <xsl:attribute name=
"term">http://schemas.google.com/contact/
2008#event
</xsl:attribute>
30 <xsl:attribute name=
"type">text
</xsl:attribute>
31 <xsl:value-of select=
"descendant::Description/Content"/>
35 <xsl:attribute name=
"type">text
</xsl:attribute>
36 <xsl:value-of select=
"descendant::Comment/Content"/>
40 <xsl:attribute name=
"rel">edit
</xsl:attribute>
41 <xsl:attribute name=
"type">application/atom+xml
</xsl:attribute>
42 <xsl:attribute name=
"href">
43 <xsl:value-of select=
"descendant::Url/Content"/>
48 <name><xsl:value-of select=
"descendant::Contact/Content"/></name>
49 <!-- TODO: add author's email -->
52 <!-- Hard-coded for while... -->
53 <gd:visibility value=
"http://schemas.google.com/g/2005#event.default"/>
54 <gd:transparency value=
"http://schemas.google.com/g/2005#event.opaque"/>
57 <xsl:attribute name=
"value">
59 <xsl:when test=
"descendant::Status/Content = 'CONFIRMED'">http://schemas.google.com/g/
2005#event.confirmed
</xsl:when>
60 <xsl:otherwise>http://schemas.google.com/g/
2005#event.cancelled
</xsl:otherwise>
66 <xsl:attribute name=
"startTime"><xsl:value-of select=
"descendant::DateStarted/Content"/></xsl:attribute>
67 <xsl:attribute name=
"endTime"><xsl:value-of select=
"descendant::DateEnd/Content"/></xsl:attribute>
71 <xsl:attribute name=
"valueString"><xsl:value-of select=
"descendant::Location/Content"/></xsl:attribute>