IssueID #1102: wrapped explanation with list and made translation optional

master
Cyprian Laskowski 4 years ago
parent a58249b67e
commit 07f5cd047f

@ -61,7 +61,7 @@
<label type="type3">value7</label>
</labelList>
<translation targetLang="hun" source="source1">hiša</translation>
<explanation/>
<explanationList/>
</translationContainer>
<translationContainer cluster="1">
<translation targetLang="hun">dom</translation>

@ -309,8 +309,13 @@
<xsd:complexType name="translationContainerType">
<xsd:sequence>
<xsd:element name="labelList" type="labelListType" minOccurs="0"/>
<xsd:element name="translation" type="translationType"/>
<xsd:element name="explanation" type="xsd:string" minOccurs="0"/> <!-- hmm: what's expected here? -->
<xsd:choice>
<xsd:sequence>
<xsd:element name="translation" type="translationType"/>
<xsd:element name="explanationList" type="explanationListType" minOccurs="0"/>
</xsd:sequence>
<xsd:element name="explanationList" type="explanationListType"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="cluster" type="xsd:int"/> <!-- number identifying a group of clustered translations -->
<xsd:attribute name="source" type="xsd:string"/> <!-- hmm, we already have @source under translationType, that's not enough? -->
@ -323,6 +328,13 @@
</xsd:sequence>
</xsd:complexType>
<!-- List of explanations -->
<xsd:complexType name="explanationListType">
<xsd:sequence>
<xsd:element name="explanation" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- Wrapper including an example and (possibly) its translation -->
<xsd:complexType name="exampleContainerType">
<xsd:sequence>

Loading…
Cancel
Save