Home » railML newsgroups » railML.infrastructure » How to mark the end of a speed restriction?
Re: How to mark the end of a speed restriction? [message #1230 is a reply to message #1229] Fri, 20 June 2014 09:03 Go to previous messageGo to previous message
Susanne Wunsch railML is currently offline  Susanne Wunsch railML
Messages: 0
Registered: January 2020
Hi Christian,

Christian Rahmig <coord(at)infrastructurerailmlorg> writes:
>
> <xs:simpleType name="tVMax">
> <xs:union>
> <xs:simpleType>
> <xs:restriction base="rail:tSpeedKmPerHour" />
> </xs:simpleType>
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:pattern value="end" />
> </xs:restriction>
> </xs:simpleType>
> </xs:union>
> </xs:simpleType>
>
> The speedChange's attribute @vMax uses this data type.
>
> I hope this solution solves the problem with the undefined maximum
> speed at the end of a temporary speed restriction zone and I
> appreciate your comments about it...

Great!

You have chosen the regular expression option in XML schema. I would
admit, that there is another possibility to define the value "end",
allowing to comment this value:

<xs:enumeration value="end" >
<xs:annotation>
<xs:documentation>The value 'end' should be used for temporary
speed restrictions, otherwise define the next speed aspect.</xs:documentation>
</xs:annotation>
</xs:enumeration>

The railML schemas currently use the regular expression method only in
cases, where there is no XML schema alternative, e.g. constraining the
"other-enumeration-value".

See also http://stackoverflow.com/questions/13974148/pattern-vs-enume ration-in-schema-xml

Kind regards...
Susanne

--
Ingenieurbüro gleisBezug; Susanne Wunsch; +49-351-46927070
Adresse: Schrammsteinstraße 8; 01309 Dresden; Ust-Id: DE273670238
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [railML3] Booster transformers in RailML
Next Topic: Requirements for RTCI-a (Infrastructure) UC
Goto Forum:
  


Current Time: Wed May 08 09:34:14 CEST 2024