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 #1231 is a reply to message #1230] Fri, 20 June 2014 11:22 Go to previous messageGo to previous message
Christian Rahmig is currently offline  Christian Rahmig
Messages: 151
Registered: January 2011
Senior Member
Dear Susanne,

Am 20.06.2014 09:03, schrieb Susanne Wunsch:
> [...]
>
> 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
>

thank you very much for your clarification on the topic. Indeed, the
enumeration solution seems to be better understandable. Therefore I
implemented it in SVN revision 609.

Best regards

--
Christian Rahmig
railML.infrastructure coordinator
 
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: Thu May 09 00:29:13 CEST 2024