EditMOM3 needs a mechanisms to check if existing charter is covered by template
Created by: GVogeler
(part of #43 )
EditMOM3 is currently only designed to handle freshly created documents. In mycollection.xqm
the function my-collection-charter-new-empty
uses a template to create the new empty charter which contains all the elements necessary for the binding.
(see https://github.com/icaruseu/mom-ca/wiki/Code-structure-of-the-editor )
If we want to use EditMOM3 for existing charters, we have to make sure that the document is conformant to the expected binding or make EditMOM3 more generic (i.e. reduce the minimal template and create a meachism to add new visualxml elements ( #35 ) .
The documents stored in MOM-CA were created without this template, so they could:
- use additional elements (#35)
- don't use a required element
- use the elements in a nesting not included in EditMOM3 (#276)
Possible solutions?
- create a template "on the fly" merging the data of the original charter and the default template
- create a template "covering all" possibilities of markup (might need a more restricted schema to ensure that)
- build EditMOM3 more generically without a template