Re: missing minOccurs="0" for <trainBrakeOperation> [message #1976 is a reply to message #1886] |
Mon, 01 October 2018 11:46 |
Dirk Bräuer
Messages: 311 Registered: August 2008
|
Senior Member |
|
|
Dear Joerg and all other's,
at the last telephone conference, I was asked to check the new r2.4 <rollingstock> railML XSDs for more possible missing optionals.
So, I compared rollingstock.xsd and rollingstockTypes.xsd
rev. 814 (RC 2.4)
with
rev. 611 (Original railML 2.3)
and searched for new <xs:element> definitions without "minOccurs='0'".
I only found the one more: In rollingstock.xsd
<xs:complexType name="eVehicleBrakes">
<xs:element name="vehicleBrakeOperation" type="rail:tBasicBrakeOperation" maxOccurs="unbounded">
no "minOccurs='0'" occurs...
The "minOccurs='0'" is also missing at some new attributes but it seems to me that for attributes, it is not necessary (since older attributes also have none). (Sorry, I am not the best choice for this task since I lack some knowledge about XSDs.)
Joerg, please check this and, in case I am not mistaken, correct it for r2.4.
Please correct me in case I misunderstood or tell me what else should be done.
Best regards,
Dirk.
|
|
|