Home » railML newsgroups » railml.timetable » Timetable schema
Timetable schema [message #674] Wed, 19 March 2008 15:50 Go to next message
Thomas Strang is currently offline  Thomas Strang
Messages: 2
Registered: October 2009
Junior Member
Hi there,

a) is there a specific reason why the "trainID" attribute of the train
element in the timetable schema is of type "tGenericID", i.e.

<xsd:attribute name="trainID" type="tGenericID" use="required" />

instead of type "xs:ID"? The latter one would allow to search for
(train-)elements by their ID in most DOM implementations, e.g.

Element element = doc.getElementById( someTrainId );


b) Where can I publicly find the most recent schema versions? A previous
news entry refers to "The latest version of the timetable scheme is
available on the RailML-Server. ", but I assume this is a non-public
part of the server?

Best,
Thomas
Re: Timetable schema [message #675 is a reply to message #674] Thu, 20 March 2008 10:31 Go to previous message
Susanne Wunsch railML is currently offline  Susanne Wunsch railML
Messages: 0
Registered: January 2020
Hello,

Thomas Strang wrote:
> a) is there a specific reason why the "trainID" attribute of the train
> element in the timetable schema is of type "tGenericID", i.e.
>
> <xsd:attribute name="trainID" type="tGenericID" use="required" />
>
> instead of type "xs:ID"?

Specification of XML Schema constrains "ID" beginning with a letter or
"_", but especially train "id"s often start with some number [1-9].

see also: <http://www.w3.org/TR/xmlschema-2/#ID>

When restructuring railML schemas for version 1.1, we decided to use
some own base type for "id"s, the "string"-based simple type
"tGenericID". Nevertheless the usage differed between the sub schemas
"timetable", "rollingstock" and "infrastructure". For next version the
schema coordinators are working on harmonization. Attribute "trainID"
should renamed to "id" through inheritance of base type
"tElementWithIDAndName".

see also: thread "tElementWithIDAndName"
<news://153.96.46.40:119/fr8rud$aot$1(at)sifaivifhgde>

Considerations about "tGenericID" and "tElementWithIDAndName" should be
discussed in <news://153.96.46.40:119/railML.misc>

> The latter one would allow to search for
> (train-)elements by their ID in most DOM implementations

Sorry, I can't help with this, since now I didn't come in contact with
DOM. Maybe, other users can give their experiences with DOM and railML.

> b) Where can I publicly find the most recent schema versions? A previous
> news entry refers to "The latest version of the timetable scheme is
> available on the RailML-Server. ", but I assume this is a non-public
> part of the server?

The latest version is railML 1.1

download: <http://www.railml.org/schemas/versions/railML_v1-1.zip>

find from home page: <http://www.railml.org/>
-> choose language (e.g. Deutsch)
-> choose "Entwicklung" or "Development"
-> choose one of topics "Common", "Timetable", "Rollingstock",
"Infrastructure"

There aren't any current working drafts in "genesis" part, which was
referred in previous news entry.

Best regard,
Susanne
Previous Topic: Feature requests for timetable schema
Next Topic: train parts
Goto Forum:
  


Current Time: Fri Apr 19 20:23:54 CEST 2024