On Sun, Aug 23, 2015 at 7:19 PM, vincent(a)massol.net <vincent(a)massol.net> wrote:
Hi Jean,
On 20 Aug 2015 at 09:34:22, Jean SIMARD
(jean.simard@xwiki.com(mailto:jean.simard@xwiki.com)) 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/DirectoryStructureforXWikiApp… (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.
Same here, I'm not a big fan of calling this "the XWiki format" since
there is various XWiki formats for various use case so it does not
mean anything and right now it's a contribution and not some official
format anyway.