Re: missing minOccurs="0" for <trainBrakeOperation> [message #1981 is a reply to message #1976] |
Tue, 02 October 2018 13:25 |
christian.rahmig
Messages: 465 Registered: January 2016
|
Senior Member |
|
|
Dear Dirk, dear all,
Am 01.10.2018 um 11:46 schrieb Dirk Bräuer:
> [...] In rollingstock.xsd
> <xs:complexType name="eVehicleBrakes">
> <xs:element name="vehicleBrakeOperation" type="rail:tBasicBrakeOperation" maxOccurs="unbounded">
> no "minOccurs='0'" occurs...
has been corrected. Thank you!
> 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.)
For attributes, please use the property use="required" or use="optional"
(default).
Best regards
Christian
--
Christian Rahmig - Infrastructure scheme coordinator
railML.org (Registry of Associations: VR 5750)
Phone Coordinator: +49 173 2714509; railML.org: +49 351 47582911
Altplauen 19h; 01187 Dresden; Germany www.railml.org
Christian Rahmig – Infrastructure scheme coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|