Home » railML newsgroups » railml.common » [railML3] Separate description from name
[railML3] Separate description from name [message #4094] Thu, 13 August 2026 15:53 Go to next message
Thomas Nygreen is currently offline  Thomas Nygreen
Messages: 138
Registered: March 2008
Senior Member
Dear all,

Currently, the <name> element has an attribute description, which can be used to describe the parent element. As it is an attribute of the <name> element, it can be interpreted as being a description of the name, but that is not normally the case. The name attribute is also required, meaning that if you need to provide a description for an element that does not have a name (or does not have a name in the same language as the description) the only possibility is to include an empty name value: <name language="en" description="This element is very nice" name=""/>

We have identified two possible improvements:
1) Make a new description element, with attributes language and description
2) Keep description in <name>, but make the name attribute optional

Please let us know what you think!

Best regards,
Thomas


Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Re: [railML3] Separate description from name [message #4098 is a reply to message #4094] Fri, 14 August 2026 09:04 Go to previous messageGo to next message
Mathias Vanden Auweele is currently offline  Mathias Vanden Auweele
Messages: 181
Registered: February 2025
Location: Brussels
Senior Member
I would prefer option 1

Mathias Vanden Auweele
Railway data freelancer
https://matdata.eu
Brussels, Belgium
Re: [railML3] Separate description from name [message #4109 is a reply to message #4098] Wed, 19 August 2026 07:50 Go to previous message
David Lichti is currently offline  David Lichti
Messages: 60
Registered: December 2020
Member
Yes, I think option 1 makes more sense. An element name "name" would be confusing for an element that does not contain a name.
Previous Topic: Questions about networkResource
Next Topic: [railML3] Remove @version attribute from root
Goto Forum:
  


Current Time: Wed Nov 18 19:07:53 GMT+1 2026