IssueID #1102: adjusted explanation and example container types

This commit is contained in:
Cyprian Laskowski 2020-08-07 16:35:41 +02:00
parent 7042ded725
commit e5d057ae6f
2 changed files with 29 additions and 14 deletions

View File

@ -71,12 +71,14 @@
<exampleContainerList>
<exampleContainer>
<corpusExample example_id="4343" modified="true" audio="audio-465346">Kupili smo <comp role="headword">hišo</comp>.</corpusExample>
<translationContainerList>
<translationContainer>
<labelList>
<label type="type5">value8</label>
</labelList>
<translation targetLang="hun">Blah blah blah 1.</translation>
</translationContainer>
</translationContainerList>
</exampleContainer>
<exampleContainer>
<multiwordExample lexical_unit_id="19" type="collocation" audio="audio-56643">
@ -84,15 +86,19 @@
<comp role="collocate" sloleks="LE_blahblah">ogledati</comp>
<comp role="headword">hiša</comp>
</multiwordExample>
<translationContainerList>
<translationContainer>
<translation targetLang="hun" source="source2" audio="audio-blah-77242">blah blah2</translation>
</translationContainer>
</translationContainerList>
</exampleContainer>
<exampleContainer>
<corpusExample example_id="552439" modified="false" lexical_unit_id="19"><comp role="collocate">Ogledali</comp> smo <comp role="collocate">si</comp> <comp role="headword">hišo</comp>.</corpusExample>
<translationContainerList>
<translationContainer>
<translation targetLang="hun" source="source2">Blah blah blah 3.</translation>
</translationContainer>
</translationContainerList>
</exampleContainer>
</exampleContainerList>
</sense>

View File

@ -330,10 +330,19 @@
</xsd:sequence>
</xsd:complexType>
<!-- Explanation (in contrast with translation) -->
<xsd:complexType name="explanationType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="language" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!-- List of explanations -->
<xsd:complexType name="explanationListType">
<xsd:sequence>
<xsd:element name="explanation" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="explanation" type="explanationType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
@ -344,7 +353,7 @@
<xsd:element name="corpusExample" type="corpusExampleType"/>
<xsd:element name="multiwordExample" type="multipleLexemeExampleType"/>
</xsd:choice>
<xsd:element name="translationContainer" type="translationContainerType" minOccurs="0"/>
<xsd:element name="translationContainerList" type="translationContainerListType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>