Re: request for an attribute for the Infrastructure Manager of a line [message #488 is a reply to message #481] |
Mon, 03 December 2012 16:27 |
Dirk Bräuer
Messages: 313 Registered: August 2008
|
Senior Member |
|
|
Dear Susanne,
Am 03.12.2012, 11:45 Uhr, schrieb Susanne Wunsch <coord(at)commonrailmlorg>:
> I would propose the following structure for the XML file:
....
> <infrastructureManagerCode id="d1e3">
> <version>
....
> <rail:line id="l1" infrastructureManagerCode="EIB">
> <rail:trackRef ref="t1"/>
> </rail:line>
As far as I see, the /id/ and /infrastructureManagerCode/ are used
redundantly. Which one of both attributes is the real reference and which
one is "for information only"? I think <trackRef /ref/> is the real
reaference and /infrastructureManagerCode/ is "for information only". But
this
- is different than in the past (where there was no /ref/ at a line),
- is confusing because not self-explaining.
At least, is not practical because in cases when a software knows only the
abbreviation of the IM, it is not known whether one should simple use the
attribute <line /infrastructureManagerCode/ > or one should create an
element <infrastructureManagerCode> for only this code.
In total: Well, it would of course be possible but a little bit
complicated, confusing and from my side not to be recommended.
At least, if you decide to do it anyway, please say that the addresses and
such (what Andreas suggested) is included in
<infrastructureManagerCode><version>.
Dirk.
|
|
|