rail:rollingstock

Element Information

Model

rail:additionalName* , ANY element from ANY namespace OTHER than 'http://www.railml.org/schemas/2016' , rail:metadata{0,1} , rail:vehicles{0,1} , rail:formations{0,1}

Attributes

QName Type Fixed Default Use Inheritable Annotation
code rail:tGenericName optional
for typical, specific abbreviations, used in different systems with the same understanding
description rail:tElementDescription optional
should be interpreted in its elements' context, substantiates the name
id rail:tGenericID required
XML-file-wide unique identity is required for later referencing that element
infrastructureRef rail:tGenericRef optional
identifier for status of related infrastructure data as reference
name rail:tGenericName optional
should be interpreted in its elements' context (e.g. track/name, vehicle/name)
timetableRef rail:tGenericRef optional
identifier for status of related timetable data as reference
version rail:tRailMLVersion optional
only used, if subschema element is outsourced, else use 'version' attribute in root element ('railml')
xml:base xs:anyURI optional
See http://www.w3.org/TR/xmlbase/ for
information about this attribute.
xml:lang xs:language optional
In due course, we should install the relevant ISO 2- and 3-letter
codes as the enumerated possible values . . .
Wildcard: ANY attribute from ANY namespace OTHER than 'http://www.railml.org/schemas/2016'

Used By

Element rail:railml

Source

<xs:element name="rollingstock">
  <xs:complexType>
    <xs:annotation>
      <xs:documentation>container for rolling stock data of single vehicles and train formations</xs:documentation>
      <xs:documentation source="http://wiki.railml.org/index.php?title=RS:rollingstock"/>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="rail:tRollingstock">
        <xs:sequence>
          <xs:element name="vehicles" type="rail:eVehicles" minOccurs="0">
            <xs:annotation>
              <xs:documentation>container for single vehicle data or vehicle family data</xs:documentation>
              <xs:documentation source="http://wiki.railml.org/index.php?title=RS:vehicles"/>
            </xs:annotation>
          </xs:element>
          <xs:element name="formations" type="rail:eFormations" minOccurs="0">
            <xs:annotation>
              <xs:documentation>container for complete train formations or sets of vehicles</xs:documentation>
              <xs:documentation source="http://wiki.railml.org/index.php?title=RS:formations"/>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:key name="etcsKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:monitoring/rail:etcs"/>
    <xs:field xpath="@id"/>
  </xs:key>
  <xs:key name="specificTransmissionModuleKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:monitoring/rail:etcs/rail:specificTransmissionModule"/>
    <xs:field xpath="@id"/>
  </xs:key>
  <xs:key name="nationalSystemKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:monitoring/rail:nationalSystem"/>
    <xs:field xpath="@id"/>
  </xs:key>
  <xs:keyref name="nationalSystem-specificTransmissionModuleKeyref" refer="rail:nationalSystemKey">
    <xs:selector xpath=".//rail:etcs/rail:specificTransmissionModule"/>
    <xs:field xpath="@nationalSystemRef"/>
  </xs:keyref>
  <xs:key name="trainRadioKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:monitoring/rail:trainRadio"/>
    <xs:field xpath="@id"/>
  </xs:key>
  <xs:key name="otherEquipmentKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:monitoring/rail:otherEquipment"/>
    <xs:field xpath="@id"/>
  </xs:key>
  <xs:key name="energyStorageKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:energyStorage"/>
    <xs:field xpath="@id"/>
  </xs:key>
  <xs:key name="propulsionKey">
    <xs:selector xpath=".//rail:vehicles/rail:vehicle/rail:engine/rail:propulsion"/>
    <xs:field xpath="@id"/>
  </xs:key>
</xs:element>

Sample