| [Codelists] Change pattern for tCode in codelists [message #3676] |
Fri, 25 July 2025 19:33 |
Thomas Nygreen
Messages: 110 Registered: March 2008
|
Senior Member |
|
|
Dear community!
Earlier this year we addressed an issue with the pattern for tOtherEnumerationValue (the 'other:*' enumeration extension), changing it from "other:\w{2,}" to "other:[A-Za-z0-9-_]{2,}" in railML3.4.[1] A similar issue applies to tCode that is used for the codes in the Registers and TrainProtectionSystems codelists, where the pattern is currently "(\w|[-]){2,}".[2]
In fact there are three different patterns for the codes in the different codelists. The codes in InfrastructureManagers can be any string, the codes in Registers and TrainProtectionSystems use the patternt mentioned above, and the codes in TrainClearanceGauges can use any characters excluding whitespace.
My questions for the community are:
1. Do we want a common pattern for the four codelists?
2. Do we want codes to be latinised, or allow native characters such as Ö and Å?
3. Do we need any resticting patterns in the codelist schemas? The codelists are maintained by railML.org, so we still control what we add and not. The attributes in the railML schemas where the codes are used are already unrestricted xs:string.
[1] https://www.railml.org/forum/index.php?t=msg&th=1049
[2] https://development.railml.org/railml/shared/-/issues/8
Best regards
Thomas Nygreen
Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|