Re: [xwiki-users] Description of XAR format
On Wed, Mar 24, 2010 at 21:54, Thomas Stinner thomas.stin...@schuechen.de wrote: Hello, i am trying to convert our existing Wiki to Xwiki. To reach this goal, i am trying to export the existing data into an xar file hat i can import into xwiki. What i am missing is a description of the xml file format. Where can i find this? There is no formal description AFAIK, the best is to export a page in XWiki and too look at the result to see what it's looks like. Another if you are using java is to create a XWikiDocument java object and call toXML on it to export the document. Thanks for help Thomas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
On Mar 25, 2010, at 9:44 AM, Thomas Mortagne wrote: On Wed, Mar 24, 2010 at 21:54, Thomas Stinner thomas.stin...@schuechen.de wrote: Hello, i am trying to convert our existing Wiki to Xwiki. To reach this goal, i am trying to export the existing data into an xar file hat i can import into xwiki. What i am missing is a description of the xml file format. Where can i find this? There is no formal description AFAIK, the best is to export a page in XWiki and too look at the result to see what it's looks like. Another if you are using java is to create a XWikiDocument java object and call toXML on it to export the document. Could you tell us more about the wiki you wish to convert since there are some conversion scripts that exist already on http://code.xwiki.org and in the sandbox. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
tmortagne wrote: There is no formal description AFAIK, the best is to export a page in XWiki and too look at the result to see what it's looks like. I already tried that and it is working for basic pages. Problem is the changelog and different versions of the same page. tmortagne wrote: Another if you are using java is to create a XWikiDocument java object and call toXML on it to export the document. Good Tipp! I will look into it. -- View this message in context: http://n2.nabble.com/Description-of-XAR-format-tp4793927p4796527.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
vmassol wrote: Could you tell us more about the wiki you wish to convert since there are some conversion scripts that exist already on http://code.xwiki.org and in the sandbox. I am trying to convert from jspwiki. I know that there exist a plugin for that already, but i do not even get it compiled. Therefore i thought it would be easier to just start fresh. -- View this message in context: http://n2.nabble.com/Description-of-XAR-format-tp4793927p4796530.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
Hi, On Mar 25, 2010, at 10:24 AM, stinnux wrote: vmassol wrote: Could you tell us more about the wiki you wish to convert since there are some conversion scripts that exist already on http://code.xwiki.org and in the sandbox. I am trying to convert from jspwiki. I know that there exist a plugin for that already, but i do not even get it compiled. Therefore i thought it would be easier to just start fresh. Another direction is to directly paste your JSPWiki content inside a xwiki page for which you have set the syntax to JSPWiki :) (we support JSPWiki syntax). However I have not tried the JSPWiki syntax support for a very long time and we don't even have tests for it so I don't know how good it is. But it would be good if someone knowing JSPWiki could tell us how good or bad our native support of it is! When you have a page in JSPWiki syntax in xwiki then you can convert it to XWiki Syntax 2.0 easily. See http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing and more specifically: http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HChoosingaSyntax Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
vmassol wrote: Another direction is to directly paste your JSPWiki content inside a xwiki page for which you have set the syntax to JSPWiki :) (we support JSPWiki syntax). However I have not tried the JSPWiki syntax support for a very long time and we don't even have tests for it so I don't know how good it is. But it would be good if someone knowing JSPWiki could tell us how good or bad our native support of it is! When you have a page in JSPWiki syntax in xwiki then you can convert it to XWiki Syntax 2.0 easily. We have more than 700 pages (not counting History and File Attachments). I am not going to do this manually But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. -- View this message in context: http://n2.nabble.com/Description-of-XAR-format-tp4793927p4796600.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
On Mar 25, 2010, at 10:41 AM, stinnux wrote: vmassol wrote: Another direction is to directly paste your JSPWiki content inside a xwiki page for which you have set the syntax to JSPWiki :) (we support JSPWiki syntax). However I have not tried the JSPWiki syntax support for a very long time and we don't even have tests for it so I don't know how good it is. But it would be good if someone knowing JSPWiki could tell us how good or bad our native support of it is! When you have a page in JSPWiki syntax in xwiki then you can convert it to XWiki Syntax 2.0 easily. We have more than 700 pages (not counting History and File Attachments). I am not going to do this manually You don't have to do this manually You could use XMLRPC or REST to upload your page content. But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. So you're setting the jspwiki/1.0 syntax in there? Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
vmassol wrote: You don't have to do this manually You could use XMLRPC or REST to upload your page content. Can i set the version of the page with one of these methods? Or upload multiple versions of the page? I haven't found a solution for this. vmassol wrote: But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. So you're setting the jspwiki/1.0 syntax in there? Yepp, exactly. -- View this message in context: http://n2.nabble.com/Description-of-XAR-format-tp4793927p4796635.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
On Mar 25, 2010, at 10:52 AM, stinnux wrote: vmassol wrote: You don't have to do this manually You could use XMLRPC or REST to upload your page content. Can i set the version of the page with one of these methods? Or upload multiple versions of the page? I haven't found a solution for this. To be honest, I don't know, would need to check. vmassol wrote: But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. So you're setting the jspwiki/1.0 syntax in there? Yepp, exactly. ok cool. It would be great if you could create jira issues on http://jira.xwiki.org if you find issues in our handling of JSPWiki. Complex links will not work I guess for example. Once you have your pages in jspwiki syntax you might want to convert them to XWiki Syntax 2.0 in order to benefit from the wysiwyg editor for example (that editor currently only works with XWiki Syntax 2.0). Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
Hello, I Hereby send you a first version of a Python script to convert twiki to xwiki. It is small, fast, and (more or less) documented. I am still working on it and will publish final version when I am done. This script is now dry-run so you need to uncomment the storepage lines. It also does wiki syntax conversion. Basically: it should work but don't blame me if it doesn't. :-) Hope you can use it. kind regards, On Thu, 2010-03-25 at 01:52 -0800, stinnux wrote: vmassol wrote: You don't have to do this manually You could use XMLRPC or REST to upload your page content. Can i set the version of the page with one of these methods? Or upload multiple versions of the page? I haven't found a solution for this. vmassol wrote: But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. So you're setting the jspwiki/1.0 syntax in there? Yepp, exactly. Deze e-Mail en de inhoud daarvan is vertrouwelijk. Indien dit bericht niet voor u bestemd is, verzoeken wij u vriendelijk deze e-mail direct aan ons te retourneren en daarna te verwijderen. Openbaarmaking, vermenigvuldiging, verstrekking en/of gebruik door derden van dit e-mail bericht en/of informatie is niet toegestaan. De verzender sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail. Deze e-mail is gecontroleerd op virussen. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
Sorry. Attachment filtered so I posted it on pastebin: http://pastebin.com/DxU6RYJw I hope it helps someone. On Thu, 2010-03-25 at 11:13 +0100, Jeroen Baten wrote: Hello, I Hereby send you a first version of a Python script to convert twiki to xwiki. It is small, fast, and (more or less) documented. I am still working on it and will publish final version when I am done. This script is now dry-run so you need to uncomment the storepage lines. It also does wiki syntax conversion. Basically: it should work but don't blame me if it doesn't. :-) Hope you can use it. kind regards, On Thu, 2010-03-25 at 01:52 -0800, stinnux wrote: vmassol wrote: You don't have to do this manually You could use XMLRPC or REST to upload your page content. Can i set the version of the page with one of these methods? Or upload multiple versions of the page? I haven't found a solution for this. vmassol wrote: But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. So you're setting the jspwiki/1.0 syntax in there? Yepp, exactly. Deze e-Mail en de inhoud daarvan is vertrouwelijk. Indien dit bericht niet voor u bestemd is, verzoeken wij u vriendelijk deze e-mail direct aan ons te retourneren en daarna te verwijderen. Openbaarmaking, vermenigvuldiging, verstrekking en/of gebruik door derden van dit e-mail bericht en/of informatie is niet toegestaan. De verzender sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail. Deze e-mail is gecontroleerd op virussen. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Deze e-Mail en de inhoud daarvan is vertrouwelijk. Indien dit bericht niet voor u bestemd is, verzoeken wij u vriendelijk deze e-mail direct aan ons te retourneren en daarna te verwijderen. Openbaarmaking, vermenigvuldiging, verstrekking en/of gebruik door derden van dit e-mail bericht en/of informatie is niet toegestaan. De verzender sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail. Deze e-mail is gecontroleerd op virussen. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Description of XAR format
On Thu, Mar 25, 2010 at 10:41, stinnux thomas.stin...@schuechen.de wrote: vmassol wrote: Another direction is to directly paste your JSPWiki content inside a xwiki page for which you have set the syntax to JSPWiki :) (we support JSPWiki syntax). However I have not tried the JSPWiki syntax support for a very long time and we don't even have tests for it so I don't know how good it is. But it would be good if someone knowing JSPWiki could tell us how good or bad our native support of it is! When you have a page in JSPWiki syntax in xwiki then you can convert it to XWiki Syntax 2.0 easily. We have more than 700 pages (not counting History and File Attachments). I am not going to do this manually But it is possible to set the page syntax in the xml file. This is what i am doing currently and it seems to work quite good. Note that if you are using XWikiDocument you can easily convert your content to xwiki/2.0 syntax before doing the export using XWikiDocument#convertSyntax(xwiki/2.0, new XWikiContext()) (to be tested for the context part but it should be ok like that) -- View this message in context: http://n2.nabble.com/Description-of-XAR-format-tp4793927p4796600.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users