From: <svn...@op...> - 2010-08-31 04:13:38
|
Author: cdfrey Date: Tue Aug 31 06:13:28 2010 New Revision: 6106 URL: http://www.opensync.org/changeset/6106 Log: xslt: only add an <author> block if data exists for it Modified: plugins/google-calendar/src/osync2gcal.xslt Modified: plugins/google-calendar/src/osync2gcal.xslt ============================================================================== --- plugins/google-calendar/src/osync2gcal.xslt Fri Aug 27 19:31:46 2010 (r6105) +++ plugins/google-calendar/src/osync2gcal.xslt Tue Aug 31 06:13:28 2010 (r6106) @@ -44,10 +44,12 @@ </xsl:attribute> </link> + <!-- May not always have a contact, and google whines if it's empty --> + <xsl:if test="string-length(descendant::Contact/Content) > 0"> <author> <name><xsl:value-of select="descendant::Contact/Content"/></name> - <!-- TODO: add author's email --> </author> + </xsl:if> <!-- Hard-coded for while... --> <gd:visibility value="http://schemas.google.com/g/2005#event.default"/> |