|
From: deloptes <del...@ya...> - 2011-01-13 22:56:55
|
Suggestion for patch to fix the build of the xsl plugin
(I didn't have time too look deeper into the code, and need to find out how
to test it)
$ diff -ubwN src/xsltformat.c.orig src/xsltformat.c
--- src/xsltformat.c.orig 2011-01-13 23:49:46.000000000 +0100
+++ src/xsltformat.c 2011-01-13 23:50:26.000000000 +0100
@@ -97,7 +97,7 @@
if (!format)
return FALSE;
- osync_format_env_register_objformat(env, format);
+ osync_format_env_register_objformat(env, format, error);
osync_objformat_unref(format);
return TRUE;
@@ -144,7 +144,7 @@
osync_converter_set_initialize_func(conv, initialize_func);
osync_converter_set_finalize_func(conv, finalize_func);
- osync_format_env_register_converter(env, conv);
+ osync_format_env_register_converter(env, conv, &error);
osync_converter_unref(conv);
return TRUE;
@@ -171,14 +171,14 @@
/* XSLT to xml-contact */
result = reg_conv(env, xslt_contact, xml_contact,
conv_xslt_to_contact,
- initialize_xslt, finalize_xslt);
+ initialize_xslt,
(OSyncFormatConverterFinalizeFunc) finalize_xslt);
if (!result)
return FALSE;
/* xml-contact to XSLT */
result = reg_conv(env, xml_contact, xslt_contact,
conv_contact_to_xslt,
- initialize_xslt, finalize_xslt);
+ initialize_xslt,
(OSyncFormatConverterFinalizeFunc) finalize_xslt);
return result;
}
$ make
[100%] Building C object src/CMakeFiles/xsltformat_plugin.dir/xsltformat.o
Linking C shared module xsltformat_plugin.so
[100%] Built target xsltformat_plugin
|
|
From: Chris F. <cd...@fo...> - 2011-01-14 19:25:43
|
The xsltformat plugin already compiles for me, using the latest SVN. I'm not entirely sure that the plugin does much though. :-) - Chris On Thu, Jan 13, 2011 at 11:56:07PM +0100, deloptes wrote: > Suggestion for patch to fix the build of the xsl plugin > (I didn't have time too look deeper into the code, and need to find out how > to test it) > > $ diff -ubwN src/xsltformat.c.orig src/xsltformat.c > > --- src/xsltformat.c.orig 2011-01-13 23:49:46.000000000 +0100 > +++ src/xsltformat.c 2011-01-13 23:50:26.000000000 +0100 > @@ -97,7 +97,7 @@ > if (!format) > return FALSE; > > - osync_format_env_register_objformat(env, format); > + osync_format_env_register_objformat(env, format, error); > osync_objformat_unref(format); > > return TRUE; > @@ -144,7 +144,7 @@ > > osync_converter_set_initialize_func(conv, initialize_func); > osync_converter_set_finalize_func(conv, finalize_func); > - osync_format_env_register_converter(env, conv); > + osync_format_env_register_converter(env, conv, &error); > osync_converter_unref(conv); > > return TRUE; > @@ -171,14 +171,14 @@ > /* XSLT to xml-contact */ > result = reg_conv(env, xslt_contact, xml_contact, > conv_xslt_to_contact, > - initialize_xslt, finalize_xslt); > + initialize_xslt, > (OSyncFormatConverterFinalizeFunc) finalize_xslt); > if (!result) > return FALSE; > > /* xml-contact to XSLT */ > result = reg_conv(env, xml_contact, xslt_contact, > conv_contact_to_xslt, > - initialize_xslt, finalize_xslt); > + initialize_xslt, > (OSyncFormatConverterFinalizeFunc) finalize_xslt); > return result; > > } > > $ make > [100%] Building C object src/CMakeFiles/xsltformat_plugin.dir/xsltformat.o > Linking C shared module xsltformat_plugin.so > [100%] Built target xsltformat_plugin > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Opensync-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensync-devel |
|
From: deloptes <del...@ya...> - 2011-01-16 18:42:52
|
Chris Frey wrote: > I'm not entirely sure that the plugin does much though. :-) this is the question someone knows what is it exactly good for? regards |
|
From: Daniel G. <go...@b1...> - 2011-01-17 21:04:08
|
On Sunday, January 16, 2011 07:42:25 pm deloptes wrote:
> Chris Frey wrote:
> > I'm not entirely sure that the plugin does much though. :-)
>
> this is the question
>
> someone knows what is it exactly good for?
The idea of the xsltformat plugin is to convert some-3rd-party-PIM-XML to
xmlformat-{contact,evnet,todo} and backwards by just writing XSLT-conversion
stylesheets.
The plugin just get passed as "parameter" the XSLT-conversion stylesheet file.
E.g. the google-calendar plugin was intended for something like this. Or for
qtopia devices. Anything which provides data in some XML format.
--
Daniel Gollub
Linux Consultant & Developer
Tel.: +49-160 47 73 970
Mail: go...@b1...
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
|
|
From: deloptes <del...@ya...> - 2011-01-17 20:39:04
|
Chris Frey wrote: > The xsltformat plugin already compiles for me, using the latest SVN. indeed! I think I haven't updated the code for a long time. when I install it, it complains [1295295858.635574] ERROR: Unable to find xslt-contact format [1295295858.635604] <--- ERROR --- osync_module_get_conversion_info: Unable to find xslt-contact format [1295295858.635717] Module get conversion error Unable to find xslt-contact format interesting :-) however there is no time to investigate further, what it is good for regards |