Hi Jean, 

On 20 Aug 2015 at 09:34:22, Jean SIMARD 
([email protected](mailto:[email protected])) wrote:

> Hi devs,
>  
> Lately, I've been working on some sort of new format to import
> information in XWiki [1] (I'm not that comfortable with editing XAR
> format with my text editor). You'll find an example of this format in
> the testing procedure of my module [2]. To create this format, I used
> the XML Schema described in the REST API of XWiki [3]. To code the
> importer, I've used the filter module [4]. I've also create a REST
> service in order to import through REST (using filters) [5].

This topic is an old one: we’ve been wanting to have an easy file system format 
for xwiki pages for a long time, in order to make it easier to edit content 
(editing XWiki XML format is not very easy to say the least, especially for 
attachments for example!).

So it’s cool that you started working on this and using the Filter Module is 
great! 

I guess we should rework the import/export pages in the future to allow using 
any Filter implementation (import from XAR, import from another wiki, etc). 
This would also allow extensions to contribute new formats too.

FTR there have been several experiments in the past too:

* Fabio had started something similar here:
http://design.xwiki.org/xwiki/bin/view/Design/DirectoryStructureforXWikiApplications
 (it links to https://github.com/fmancinelli/xwikifs)
* I know Caleb also did something in javascript but I don’t have a link.

> I'd like that project be a part of xwiki-contrib. At the moment, I've
> called it 'api-xwf'. Maybe 'api-xwiki-format' would be more self
> explicit. If you'd prefer something else, please let me know.

It would be great if you could find a more specific name since there could be 
several xwiki page formats. “api-xfs” for example, where XFS would stand for 
XWiki FileSystem Format.

Thanks
-Vincent

> Thanks,
>  
> [1] https://github.com/woshilapin/api-xwf
> [2]
> https://github.com/woshilapin/api-xwf/tree/master/xwf-filter-stream/src/test/resources/packagefile/xwf/xwiki
> [3]
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-model/src/main/resources/xwiki.rest.model.xsd
> [4] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module
> [5] https://github.com/woshilapin/api-xwf/tree/master/xwf-rest-api
> --
> Jean Simard
> [email protected]
> Research engineer at XWiki SAS
> http://www.xwiki.com
> Committer on the XWiki.org project
> http://www.xwiki.org

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to