[xwiki-users] Converter from 2.0 to 1.0
Morning everyone, The title of this topic may have surprised you but I'll explain what I mean by that :-). I'm now working with XE 1.8.2. In this http://n2.nabble.com/Export-Spaces-td2723943.html post , we can see an example of an "application" which works in xwiki syntax 1.0 but not in xwiki syntax 2.0. The thing is, in order to make this "application" work again, we have to translate it from 2.0 to 1.0. Basically, we can have users who wants to translate "applications" they programmed in Xwiki syntax 2.0 => the result of the translation doesn't work => They've to translate it manually from 2.0 to 1.0. Thanks in advance, Hesediel. PS : Which pieces of code in this http://n2.nabble.com/Export-Spaces-td2723943.html application don't work in xwiki syntax 2.0 ?? -- View this message in context: http://n2.nabble.com/Converter-from-2.0-to-1.0-tp2732053p2732053.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Apr 28, 2009, at 9:52 AM, Hesediel wrote:
Morning everyone,
The title of this topic may have surprised you but I'll explain what I mean by that :-). I'm now working with XE 1.8.2.
In this http://n2.nabble.com/Export-Spaces-td2723943.html post , we can see an example of an "application" which works in xwiki syntax 1.0 but not in xwiki syntax 2.0. The thing is, in order to make this "application" work again, we have to translate it from 2.0 to 1.0. Basically, we can have users who wants to translate "applications" they programmed in Xwiki syntax 2.0 => the result of the translation doesn't work => They've to translate it manually from 2.0 to 1.0.
AFAIK all 1.0 apps will work fine with 2.0 syntax. Can you explain what would make an application not work? On the 2.0 to 1.0 converter we won't code it. It's a lot of work for something that'll disappear. However if you submit some good patches and you commit to maintaining them over the long run then we can apply them. Thanks -Vincent
Thanks in advance,
Hesediel.
PS : Which pieces of code in this http://n2.nabble.com/Export-Spaces-td2723943.html application don't work in xwiki syntax 2.0 ??
Hi Vincent, vmassol wrote:
AFAIK all 1.0 apps will work fine with 2.0 syntax. Can you explain what would make an application not work?
Maybe I didn't use the correct vocabulary. It's not the application like Blog or things like this. It's more code for selective export like code which are exposed in this http://n2.nabble.com/Export-Spaces-td2723943.html post (which works well in Xwiki syntax 1.0 in order to export only one space). I supposed that it must not be an unique case and I haven't found a way yet in order to make it works in syntax 2.0. Maybe it's not necessary to code an API for this, I agree, but it'd be nice to have a guide (if you're agree with this idea ;-)). It's really important cause the only way to make a Xar (custom Xar containing spaces containing pages with accents :-)) working on Xwiki is to use the API implemented in Xwiki (I've exposed this on http://jira.xwiki.org/jira/browse/XWIKI-3695 Jira and http://n2.nabble.com/Custom-Xar-td2669458.html Nabble posts). -- View this message in context: http://n2.nabble.com/Converter-from-2.0-to-1.0-tp2732053p2732090.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On Apr 28, 2009, at 10:09 AM, Hesediel wrote:
Hi Vincent,
vmassol wrote:
AFAIK all 1.0 apps will work fine with 2.0 syntax. Can you explain what would make an application not work?
Maybe I didn't use the correct vocabulary. It's not the application like Blog or things like this. It's more code for selective export like code which are exposed in this http://n2.nabble.com/Export-Spaces-td2723943.html post (which works well in Xwiki syntax 1.0 in order to export only one space). I supposed that it must not be an unique case and I haven't found a way yet in order to make it works in syntax 2.0.
I don't have the time to look but I don't see a reason why it would not work in 2.0 syntax (provided you convert it correctly of course ;)). Would be great if you can try and tell us specifically what's not working (we're all quite busy so if you can help us help you that would be great). Thanks -Vincent
Maybe it's not necessary to code an API for this, I agree, but it'd be nice to have a guide (if you're agree with this idea ;-)).
It's really important cause the only way to make a Xar (custom Xar containing spaces containing pages with accents :-)) working on Xwiki is to use the API implemented in Xwiki (I've exposed this on http://jira.xwiki.org/jira/browse/XWIKI-3695 Jira and http://n2.nabble.com/Custom-Xar-td2669458.html Nabble posts).
The problem I had with the code, doesn't appear with XWiki 1.8.2 now. I had to maek an mistake with the easy procedure to convert syntax of a page. Anyway, just to notify, the problem appears in XE 1.8.1 ;-). -- View this message in context: http://n2.nabble.com/Converter-from-2.0-to-1.0-tp2732053p2732202.html Sent from the XWiki- Users mailing list archive at Nabble.com.
The 1.0->2.0 can't be perfect for a complex application, sometime there is generated 1.0 syntax the converter can't match and things like that. It's just an helper. On Tue, Apr 28, 2009 at 10:53, Hesediel <[email protected]> wrote:
The problem I had with the code, doesn't appear with XWiki 1.8.2 now. I had to maek an mistake with the easy procedure to convert syntax of a page. Anyway, just to notify, the problem appears in XE 1.8.1 ;-). -- View this message in context: http://n2.nabble.com/Converter-from-2.0-to-1.0-tp2732053p2732202.html Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (3)
-
Hesediel -
Thomas Mortagne -
Vincent Massol