Skip to content

Commit 63db087

Browse files
committed
Fixes #558
1 parent 5894bd0 commit 63db087

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

examples/functions/versioning/Netex_VersioningExample_Step_05.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ This is part 4 of a multistep example on versioning.
109109
<PrivateCode>mycodeA</PrivateCode>
110110
</ScheduledStopPoint>
111111
<ScheduledStopPoint version="002" created="2010-05-18T09:30:47.0Z" changed="2010-06-18T09:30:47.0Z" modification="revise" id="mybus:SSP0002B">
112-
<Name>Haltstelle B</Name>
112+
<Name>
113+
<Text>Haltstelle B</Text>
114+
<Text lang="en">stop B</Text>
115+
</Name>
113116
<Description>Version two of stop B</Description>
114117
<PrivateCode>mycodeB</PrivateCode>
115118
</ScheduledStopPoint>

xsd/netex_framework/netex_genericFramework/netex_alternativeName_support.xsd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,15 @@ Rail transport, Roads and Road transport
9393
</xsd:annotation>
9494
<xsd:restriction base="xsd:string">
9595
<xsd:enumeration value="alias"/>
96-
<xsd:enumeration value="translation"/>
96+
<xsd:enumeration value="translation">
97+
<xsd:annotation>
98+
<xsd:documentation>Deprecated in v2.0 for AlternativeName. Use MultiligualString directly with Text subelements.</xsd:documentation>
99+
</xsd:annotation>
100+
</xsd:enumeration>
97101
<xsd:enumeration value="copy"/>
98102
<xsd:enumeration value="label"/>
99103
<xsd:enumeration value="other"/>
100104
</xsd:restriction>
101105
</xsd:simpleType>
102106
<!-- ======================================================================= -->
103-
</xsd:schema>
107+
</xsd:schema>

xsd/netex_framework/netex_utility/netex_utility_xml.xsd

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,21 @@ Rail transport, Roads and Road transport
5555
<xsd:documentation>Xml utility types for NeTEX</xsd:documentation>
5656
</xsd:annotation>
5757
<!-- ======================================================================= -->
58-
<xsd:complexType name="MultilingualString">
59-
<xsd:annotation>
60-
<xsd:documentation>Type for a string in a specified language.</xsd:documentation>
61-
</xsd:annotation>
58+
<xsd:complexType name="MultilingualString" mixed="true">
59+
<xsd:annotation>
60+
<xsd:documentation>Either use with simple text (as was used in NeTEx priori to v2.0) or use only Text elements withing the MultilingualString. The old version will be deprecated. Also to take advantage of mixed may not be processable by some data consumers.</xsd:documentation>
61+
</xsd:annotation>
62+
<xsd:sequence>
63+
<xsd:element name="Text" type="TextType" minOccurs="0" maxOccurs="unbounded"/>
64+
</xsd:sequence>
65+
<xsd:attribute name="lang" type="xsd:string"/>
66+
<xsd:attribute name="textIdType" type="xsd:string"/>
67+
</xsd:complexType>
68+
<xsd:complexType name="TextType">
6269
<xsd:simpleContent>
63-
<xsd:extension base="xsd:normalizedString">
64-
<xsd:attribute name="lang" type="xsd:language">
65-
<xsd:annotation>
66-
<xsd:documentation>Language of string contents.</xsd:documentation>
67-
</xsd:annotation>
68-
</xsd:attribute>
69-
<xsd:attribute name="textIdType" type="xsd:normalizedString">
70-
<xsd:annotation>
71-
<xsd:documentation>Resource id of string.</xsd:documentation>
72-
</xsd:annotation>
73-
</xsd:attribute>
70+
<xsd:extension base="xsd:string">
71+
<xsd:attribute name="lang" type="xsd:string"/>
72+
<xsd:attribute name="textIdType" type="xsd:string"/>
7473
</xsd:extension>
7574
</xsd:simpleContent>
7675
</xsd:complexType>
@@ -100,4 +99,4 @@ Rail transport, Roads and Road transport
10099
</xsd:any>
101100
</xsd:sequence>
102101
</xsd:complexType>
103-
</xsd:schema>
102+
</xsd:schema>

0 commit comments

Comments
 (0)