TT:operatingPeriodRef trainPart: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [unchecked revision] |
m (RailML > railML; Filesize of example PDF corrected) |
(child element specialService delared deprecated, links to child element specialService repaired) |
||
Line 9: | Line 9: | ||
|parent = {{TT:Tag|trainPart}} | |parent = {{TT:Tag|trainPart}} | ||
|childs = {{TT:Tag|specialService}} | |childs = {{TT:Tag|specialService|operatingPeriodRef}} {{depr|2.3}} | ||
|inheritedAttributes = | |inheritedAttributes = | ||
Line 31: | Line 31: | ||
* {{Attr|endDate}} {{XsdType|date}}, optional <br/> If not empty it has to be equal or earlier than the {{Attr|endDate}} of the referenced {{TT:Doc|timetablePeriod}}. | * {{Attr|endDate}} {{XsdType|date}}, optional <br/> If not empty it has to be equal or earlier than the {{Attr|endDate}} of the referenced {{TT:Doc|timetablePeriod}}. | ||
|notes = | |||
Child element {{TT:Doc|specialService|operatingPeriodRef}} is deprecated from railML 2.3 on. An individual {{TT:Doc|operatingPeriod}} for each {{TT:Doc|trainPart}} should be referenced instead. | |||
|example = | |example = |
Revision as of 16:56, 10 February 2016
operatingPeriodRef
Scheme description / Schemenbeschreibung
Position of operatingPeriodRef in the XML-Tree / Position von operatingPeriodRef im XML-Baum
- Parent: <trainPart>
- Children: <specialService> (deprecated with version 2.3)
Multiplicity / Anzahl
Semantics / Bedeutung
The Element <operatingPeriodRef> is used for referencing the operatingPeriod for the trainPart.
Das Element <operatingPeriodRef> referenziert die zum trainPart gehörige Verkehrsperiode.
Attributes of operatingPeriodRef / Attribute von operatingPeriodRef
- ref: This refers to the id attribute of the associated <operatingPeriod> element.
- xs:anyAttribute: This provides an extension point for non-railML® attributes in a foreign namespace. How to use it?
- startDate: This describes optional further restrictions of the operating period.
- endDate: This describes optional further restrictions of the operating period.
Syntactic Constraints / Syntaktische Beschränkungen
- ref xs:IDREF, mandatory
- startDate xs:date, optional
If not empty it has to be equal or later than the startDate of the referenced timetablePeriod.
- endDate xs:date, optional
If not empty it has to be equal or earlier than the endDate of the referenced timetablePeriod.
Best practice & Examples / Empfohlene Anwendung & Beispiele
Normal reference to the operatingPeriod for 'daily':
<rail:operatingPeriodRef ref="TGL"/>
Same reference but restricted to certain period:
<rail:operatingPeriodRef ref="TGL" startDate="2009-10-05" endDate="2009-10-16"/>
see also
- How to indicate midnight overruns in railML
- iRFP-Informationen und -Beispiel zu Verkehrstagen in railML (Author: Dirk Bräuer, iRFP Dresden 74 kByte, as of: May 2012)
- iRFP-Beispiel zur Abbildung von Mitternachtsübergängen in railML (Author: Dirk Bräuer, iRFP Dresden 165 kByte, as of: May 2012)
Notes / Anmerkungen
Child element specialService is deprecated from railML 2.3 on. An individual operatingPeriod for each trainPart should be referenced instead.
Open issues / Offene Punkte/Pendenzen
Not yet described. / Noch nicht beschrieben.