[Update - Week 13]
This whole week I was working on schema validation:
PR #35
Currently we have schema that are not completed meaning they only have whats inside the extension point elements i.e elements for plugins, metadata, scripts etc. They are not complete for validation with any XML file because it need to have root element i.e addon and other things.
After discussion we planned to had a single schema that will do the validation for all the addon types i.e plugin, scipts etc for that I generated a
schema that will validate three type of addons - scripts, plugins and resource. That schema was generated by feeding addon.xml files from addon to a tool called `
Trang`.
After further discussion we realized that generating a totally new schema from addon.xml files will not be optimal because
1) There will be missing attributes and lots of other thing we don't want.
2) The existing XSD file are present in kodi's source tree so whenever the schema changes we'll have to update a big schema. so having a new schema is not a good option.
After seeing all this issues with totally new schema we planned to have a global schema that will be dependent on other existing addon meaning there will be a schema that will have a root element with some other elements and for any extension point it will include an existing addon.
Now this approach also have a problem - All the existing schema have similar element type, if we include all those schema in single schema then it will be difficult to refer to any specific extension point.
We are still to solve this issue.
Plan for coming week: I will continue my work on the schema validation.