[Redmine #4173] Use XInclude, add array container for elements with maxOccurs > 1
Bugzilla Link | 4035 |
Created on | May 23, 2019 10:25 |
Resolution | FIXED |
Resolved on | Nov 19, 2019 10:07 |
Version | 0.9.1 |
Extended Description
https://redmine.vires.com/issues/4173
Matthias Kühr wrote:
XML Schema and OpenSCENARIO test file tested under Linux with:
xmllint --xinclude --schema OpenScenario_XML-Schema.xsd testScenario.xosc
The following points were done:
-to use XInclude:
The xml:base attribute is added automatically to the root element of the included file. To validate this, <xsd:attribute ref="xml:base"/> is added to every element.
Import the namespace and schemaLocation, add the schema xml.xsd to use without internet connection
-remove element include
-add array container
-make new element userDataList an optional element (replace userData)
-rename some elements for a more consistent name schema
name schema for array container and possible array member:
NAME - possible array member (e.g endCondition)
NAMEs - array container for NAME (e.g endConditions)
Group - possible array member, (e.g endConditionsGroup)
Groups - array container for Group, (e.g endConditionsGroups)
List - array container for NAME (parameterList)
-in complexTypes with element fileHeader, put fileHeader on same level as the other elements. Therefore remove the element level with the name of the type, e.g. in OSCObserver remove observer level