From 144f3298e303e25020014ffdb2adadc51183ef3e Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Fri, 22 Aug 2008 14:52:08 -0400 Subject: [PATCH] Adding magical XSLT files to convert gdata <--> osyncformat. I'm still not sure where this files should be installed (maybe together with other opensync XML files?). Or should it be within the plugin directory location? --- src/gcal2osync.xslt | 150 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/gcont2osync.xslt | 104 +++++++++++++++++++++++++++++++++++ src/osync2gcal.xslt | 80 +++++++++++++++++++++++++++ src/osync2gcont.xslt | 64 ++++++++++++++++++++++ 4 files changed, 398 insertions(+) create mode 100644 src/gcal2osync.xslt create mode 100644 src/gcont2osync.xslt create mode 100644 src/osync2gcal.xslt create mode 100644 src/osync2gcont.xslt diff --git a/src/gcal2osync.xslt b/src/gcal2osync.xslt new file mode 100644 index 0000000..421d3f7 --- /dev/null +++ b/src/gcal2osync.xslt @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CONFIRMED + CANCELLED + + + + + + + + + + + + + + + + + + + + + diff --git a/src/gcont2osync.xslt b/src/gcont2osync.xslt new file mode 100644 index 0000000..761ba36 --- /dev/null +++ b/src/gcont2osync.xslt @@ -0,0 +1,104 @@ + + + + + + + + + +
+ + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
diff --git a/src/osync2gcal.xslt b/src/osync2gcal.xslt new file mode 100644 index 0000000..b205d03 --- /dev/null +++ b/src/osync2gcal.xslt @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + http://schemas.google.com/g/2005#kind + http://schemas.google.com/contact/2008#event + + + + <xsl:attribute name="type">text</xsl:attribute> + <xsl:value-of select="descendant::Description/Content"/> + + + + text + + + + + edit + application/atom+xml + + + + + + + + + + + + + + + + + + http://schemas.google.com/g/2005#event.confirmed + http://schemas.google.com/g/2005#event.cancelled + + + + + + + + + + + + + + + + + + + + diff --git a/src/osync2gcont.xslt b/src/osync2gcont.xslt new file mode 100644 index 0000000..cc1cca1 --- /dev/null +++ b/src/osync2gcont.xslt @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + http://schemas.google.com/g/2005#kind + http://schemas.google.com/contact/2008#contact + + + + <xsl:attribute name="type">text</xsl:attribute> + <xsl:value-of select="descendant::FormattedName/Content"/> + + + + edit + application/atom+xml + + + + + + + + http://schemas.google.com/g/2005#other + + + + + + + + + + + + + http://schemas.google.com/g/2005#other + + + + + + + + + + + -- 2.11.4.GIT