Hi all,

I tried using top-of-trunk sources from the SynCE SVN, but had some 
problems. I now have them solved (well, at least some of them ;)), so I 
start to send the patches - hopefully, they will be integrated. I'll send 
them one by one, for ease of review and integration.

Patch #1: fixing slow-sync mode. The sync-engine script received an 
exception while converting the contacts ("not well-formed" from Expat). 
It turned out that the result of applying the contact-from-airsync.xsl 
stylesheet was hardly resembling XML, as the namespace in the input data 
was in the AS:ApplicationData namespace, not just ApplicationData. Note 
that other stylesheets accept both these namespaces - so I made 
contact-from-airsync.xsl accept both them, too.

Best regards,
Alexey Neyman.
Index: SyncEngine/formats/contact-from-airsync.xsl
===================================================================
--- SyncEngine/formats/contact-from-airsync.xsl	(revision 3010)
+++ SyncEngine/formats/contact-from-airsync.xsl	(working copy)
@@ -5,9 +5,10 @@
                xmlns:convert="http://synce.org/convert";
                xmlns:C1="http://synce.org/formats/airsync_wm5/contacts";
                xmlns:C2="http://synce.org/formats/airsync_wm5/contacts2";
+               xmlns:AS="http://synce.org/formats/airsync_wm5/airsync";
                exclude-result-prefixes="convert C1 C2">
 
-    <xsl:template match="ApplicationData">
+    <xsl:template match="ApplicationData | AS:ApplicationData">
         <contact>
             <FileAs><Content><xsl:value-of select="C1:FileAs"/></Content></FileAs>
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to