Not everyone uses modeling tools and the awesome work one can do with these tools must be conveyed to the outside world, for instance, in the form of documents.
The M2Doc technology enables the generation of Office Open XML documents from Ecore models and Sirius representations.
The overall approach M2Doc implements consists in creating templates in the OOX format where static text authoring benefit from the WYSIWYG capabilities of the usual tools (e.g. Microsoft Word, Libre Office, Open Office). Dynamic parts are inserted using a dedicated vocabulary of OOX fields code. Fields are mainly used to insert page numbers, references, etc. M2Doc makes use them to describe documentation generation directives. This allows a total separation between the document and the M2Doc directives.
The template language makes an extensive use of the Acceleo Query Language which provides a full fledged, extensible model query language and engine.
In this talk, I will present the M2Doc technology and talk about the way it is integrated with Sirius.