Remove empty sequences schema (de: Leere Schemensequenzen entfernen)
Description
Current railML v3.1 beta version contains a number of empty sequences in elements, e.g. in , or . Although the schema is still syntactically valid with the empty sequences, it is our aim to remove them from the schema. The origin of the empty sequences is presumably to be found in the automatic generation process.
Background
Currently, railML v3 schema files are exported from UML modelling tool "Enterprise Architect". It seems that every complexType is exported together with a complexContent requiring a sequence.
Links
- Forum post 1: [https://www.railml.org/forum/index.php?t=msg&th=539&goto=1660&#msg_1660]
- Forum thread 2: [https://www.railml.org/forum/index.php?t=msg&th=633&start=0&]
Proposed solution for railML 3.1
If the automatic XSD generation in Enterprise Architect does not allow complexType with simpleContent, empty sequences will be part of the automatic XSD export. In that case, only a post-processing script may help to remove the empty sequences.