Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ This is part 4 of a multistep example on versioning.
<PrivateCode>mycodeA</PrivateCode>
</ScheduledStopPoint>
<ScheduledStopPoint version="002" created="2010-05-18T09:30:47.0Z" changed="2010-06-18T09:30:47.0Z" modification="revise" id="mybus:SSP0002B">
<Name>Haltstelle B</Name>
<Name>
<Text>Haltestelle B</Text>
<Text lang="en">stop B</Text>
</Name>
<Description>Version two of stop B</Description>
<PrivateCode>mycodeB</PrivateCode>
</ScheduledStopPoint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ Rail transport, Roads and Road transport
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="alias"/>
<xsd:enumeration value="translation"/>
<xsd:enumeration value="translation">
<xsd:annotation>
<xsd:documentation>Deprecated in v2.0 for AlternativeName. Use MultiligualString directly with Text subelements.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="copy"/>
<xsd:enumeration value="label"/>
<xsd:enumeration value="other"/>
Expand Down
25 changes: 12 additions & 13 deletions xsd/netex_framework/netex_utility/netex_utility_xml.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,21 @@ Rail transport, Roads and Road transport
<xsd:documentation>Xml utility types for NeTEX</xsd:documentation>
</xsd:annotation>
<!-- ======================================================================= -->
<xsd:complexType name="MultilingualString">
<xsd:complexType name="MultilingualString" mixed="true">
<xsd:annotation>
<xsd:documentation>Type for a string in a specified language.</xsd:documentation>
<xsd:documentation>*Either* use with simple text (as in NeTEx prior to v2.0) or use *only* Text elements within the MultilingualString. The old version (simple text) will be deprecated. As this is a mixed type this is not currently enforced by the schema.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Text" type="TextType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="lang" type="xsd:language"/>
<xsd:attribute name="textIdType" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="TextType">
<xsd:simpleContent>
<xsd:extension base="xsd:normalizedString">
<xsd:attribute name="lang" type="xsd:language">
<xsd:annotation>
<xsd:documentation>Language of string contents.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="textIdType" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation>Resource id of string.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:extension base="xsd:string">
<xsd:attribute name="lang" type="xsd:language"/>
<xsd:attribute name="textIdType" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
Expand Down