# Source

Full commit
Blame Embed Raw

- Default File Viewer

      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!-- =================================== -->
    <!-- hafasRestArrivalBoard.xsd (Version 1.2) -->
    <!-- ======================================= -->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    	<xs:element name="ArrivalBoard">
    		<xs:annotation>
    			<xs:documentation>The arrival board lists up to 20 arrivals at a specific stop/station or group of stop/stations.</xs:documentation>
    		</xs:annotation>
    		<xs:complexType>
    			<xs:sequence minOccurs="0" maxOccurs="20">
    				<xs:element ref="Arrival"/>
    			</xs:sequence>
    			<xs:attributeGroup ref="attlist.ArrivalBoard"/>
    		</xs:complexType>
    	</xs:element>
    	<xs:attributeGroup name="attlist.ArrivalBoard">
    		<xs:attribute name="error" type="xs:string" use="optional">
    			<xs:annotation>
    				<xs:documentation>If some problem occurs while creating the arrival board you can find an error code here. Note: These error codes are not suitable for end users but only for reporting purposes. Most of the errors do not indicate a system failure but data or request parameter issues.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    	</xs:attributeGroup>
    	<xs:element name="Arrival">
    		<xs:annotation>
    			<xs:documentation>The element Arrival contains all information about a arrival like time, date, stop/station name, track, realtime time, date and track, origin, name and type of the journey. It also contains a reference to journey details.</xs:documentation>
    		</xs:annotation>
    		<xs:complexType>
    			<xs:sequence>
    				<xs:element ref="JourneyDetailRef" minOccurs="1" maxOccurs="1"/>
    			</xs:sequence>
    			<xs:attributeGroup ref="attlist.Arrival"/>
    		</xs:complexType>
    	</xs:element>
    	<xs:attributeGroup name="attlist.Arrival">
    		<xs:attribute name="name" use="required">
    			<xs:annotation>
    				<xs:documentation>The attribute name specifies the name of the arriving journey (e.g. "Bus 100").</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="type" use="required">
    			<xs:annotation>
    				<xs:documentation>The attribute type specifies the type of the arriving journey. Valid values are IC (InterCity), LYN (Lyntog), REG (Regionaltog), S (S-Tog), TOG (other train), BUS (Bus), EXB (Express Buss), NB (Nattbus), TB (Telebus, other form of transport), F (Ferry) and M (Metro).</xs:documentation>
    			</xs:annotation>
    			<xs:simpleType>
    				<xs:restriction base="xs:string">
    					<xs:enumeration value="IC"/>
    					<xs:enumeration value="LYN"/>
    					<xs:enumeration value="REG"/>
    					<xs:enumeration value="S"/>
    					<xs:enumeration value="TOG"/>
    					<xs:enumeration value="BUS"/>
    					<xs:enumeration value="EXB"/>
    					<xs:enumeration value="NB"/>
    					<xs:enumeration value="TB"/>
    					<xs:enumeration value="F"/>
    					<xs:enumeration value="M"/>
    				</xs:restriction>
    			</xs:simpleType>
    		</xs:attribute>
    		<xs:attribute name="stop" type="xs:string" use="required">
    			<xs:annotation>
    				<xs:documentation>Contains the name of the stop/station.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="time" type="xs:string" use="required">
    			<xs:annotation>
    				<xs:documentation>Time in format HH:MM.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="date" type="xs:string" use="required">
    			<xs:annotation>
    				<xs:documentation>Date in format DD.MM.YY.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="track" type="xs:string" use="optional">
    			<xs:annotation>
    				<xs:documentation>Track information, if available.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="rtTime" type="xs:string" use="optional">
    			<xs:annotation>
    				<xs:documentation>Realtime time in format HH:MM if available.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="rtDate" type="xs:string" use="optional">
    			<xs:annotation>
    				<xs:documentation>Realtime date in format DD.MM.YY, if available.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="rtTrack" type="xs:string" use="optional">
    			<xs:annotation>
    				<xs:documentation>Realtime track information, if available.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    		<xs:attribute name="origin" type="xs:string" use="optional">
    			<xs:annotation>
    				<xs:documentation>Origin of the journey.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    	</xs:attributeGroup>
    	<xs:element name="JourneyDetailRef">
    		<xs:annotation>
    			<xs:documentation>Reference to journey details.</xs:documentation>
    		</xs:annotation>
    		<xs:complexType>
    			<xs:attributeGroup ref="attlist.JourneyDetailRef"/>
    		</xs:complexType>
    	</xs:element>
    	<xs:attributeGroup name="attlist.JourneyDetailRef">
    		<xs:attribute name="ref" type="xs:string" use="required">
    			<xs:annotation>
    				<xs:documentation>Contains a URL to call the ReST interface for journey details.</xs:documentation>
    			</xs:annotation>
    		</xs:attribute>
    	</xs:attributeGroup>
    </xs:schema>