Home » railML newsgroups » railml.common » Child elements with one value vs. attributes
Child elements with one value vs. attributes [message #1760] Thu, 12 April 2018 05:39 Go to previous message
Joerg von Lingen is currently offline  Joerg von Lingen
Messages: 148
Registered: May 2011
Senior Member
Dear all,

in the existing railML schema we have placed the information mainly into attributes. In the current development of IL
part it appears that there are several child elements containing only one value but no attribute at all (variant 1). I
would suggest to transfer such values into an attribute of the parent element whenever this is suitable (variant 2).

1) variant
<rail3:overlapReleaseTimer code="ovt01" id="ovt01">
<rail3:timer>PT60S</rail3:timer>
<rail3:overlapReleaseCondition>startTimerAfterVacating</rail3:overlapReleaseCondition >
</rail3:overlapReleaseTimer>

2) variant
<rail3:overlapReleaseTimer code="ovt01" id="ovt01" timer="PT60S" overlapReleaseCondition="startTimerAfterVacating">
</rail3:overlapReleaseTimer>

Best Jörg.
Interlocking coordinator
 
Read Message
Read Message
Previous Topic: [railML3] Strategy of documentation at wiki.railML.org
Next Topic: Change of Template:InheritIdName
Goto Forum:
  


Current Time: Thu Apr 25 10:38:09 CEST 2024