The syntax of the XSD should be more consistent and formatted according to our development guidelines. This should be automated. The following proposal implements a Python script with the following functionalities:
Alphabetical sorting of types
Arrange attributes in the same order (predefined, e.g. name, minOccurs, maxOccurs, type)
Remove attributes with default values (implemented so far: minOccurs="1", maxOccurs="1")
Ensure that type names always start with a lowercase letter and end with "Type"
Remove unused types
Replace tabs with four spaces
Correct indentations
Remove spaces at line ends
Ensure that there is always one blank line between each type
The syntax of the XSD should be more consistent and formatted according to our development guidelines. This should be automated. The following proposal implements a Python script with the following functionalities:
name
,minOccurs
,maxOccurs
,type
)minOccurs="1"
,maxOccurs="1"
)A first draft: syntax_cleanup.py.
The script requires further testing. Proposals for additional features are welcome. Thanks @jnwalther for your support.