Make it clear which attributes are required and which are optional
As an example, take the tunnel record:
- I think
lengthshould be mandatory
- Most people would probably say that the
typeshould also be mandatory
daylightcould probably be optional
However, there is no indication in the standard which of these elements are in fact mandatory.
The real problem is that in the XML Schema, all attributes are marked as optional (attributes are optional by default, and are only required if they have an attribute
use="required" in the schema file). So the XML schema cannot be used to determine if all required attributes are there.
I propose the following:
For OpenDRIVE 1.5, all required attributes should be marked as such in the XML Schema file. That way, xodr files can be more easily checked for correctness.