| [railML3] Change pattern for tOtherEnumerationValue [message #3557] |
Thu, 10 April 2025 16:56  |
Thomas Nygreen
Messages: 110 Registered: March 2008
|
Senior Member |
|
|
Dear community!
The documentation of tOtherEnumerationValue (the 'other:*' enumeration extension), both in the schema and in the wiki has been insufficient, and led to some confusion. After discussion between the coordinators, we have also decided that the pattern of at least two "word characters" is not what we want. A "word character" is any unicode character except "punctuation", "separator" and "other" characters".[1] That includes a lot more than we need, and excludes the useful separators - and _. So in railML 3.4 we will change the pattern to 'other:[A-Za-z0-9-_]{2,}', meaning 'other:' followed by at least two characters, allowing only the letters A-Z and a-z, the digits 0-9 and the separators - and _.
We cannot change the pattern in the existing versions, but we have updated the wiki documentation [2] to clarify that only letters and digits are allowed, and added a best practice recommendation to only use the letters A-Z and a-z and the digits 0-9, to stay as close to the new pattern as possible. We will also update the schema documentation in the next service releases.
[1] https://www.w3.org/TR/xmlschema11-2/#cces-mce
[2] https://wiki3.railml.org/wiki/Dev:UsingAny#New_enumeration_v alue (also mirrored to wiki2)
Best regards
Thomas Nygreen
Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|
|
|
| Re: [railML3] Change pattern for tOtherEnumerationValue [message #3805 is a reply to message #3797] |
Tue, 02 December 2025 15:22   |
Thomas Nygreen
Messages: 110 Registered: March 2008
|
Senior Member |
|
|
Dear Dominik,
Thank you for pointing out this error. I have committed a fix to escape the hyphen and also correct a spelling error in the documentation ("digits 0-1" corrected to "digits 0-9").
Best regards,
Thomas Nygreen
Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|
|
|