1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

XEP-0171: Schema wrongly specifies elements/attributes as required

E.g. Example 1 and 2 have no <source/> element
Many examples have no dictionary attribute.

And destination_lang should have type xs:language
This commit is contained in:
Christian Schudt 2015-09-27 00:19:39 +02:00 committed by Matthew A. Miller
parent 4988e2709a
commit 3020652e01

View File

@ -50,6 +50,12 @@
<surname>Raymond</surname>
<email>braymond@echostorm.net</email>
</author>
<revision>
<version>1.1.1</version>
<date>2015-10-15</date>
<initials>XEP Editor (mam)</initials>
<remark><p>Corrected XML schema to note a number of constructs are optional not required (Christian Schudt).</p></remark>
</revision>
<revision>
<version>1.1</version>
<date>2011-06-15</date>
@ -416,7 +422,7 @@
<xs:element name='x'>
<xs:complexType>
<xs:element ref='source' use='required'/>
<xs:element ref='source' use='optional'/>
<xs:sequence>
<xs:element ref='translation' use='required' minOccurs='1'/>
</xs:sequence>
@ -439,8 +445,8 @@
<xs:extension base='empty'>
<xs:attribute name='charset' type='xs:string' use='optional'/>
<xs:attribute name='source_lang' type='xs:language' use='optional' />
<xs:attribute name='destination_lang' type='xs:string' use='required'/>
<xs:attribute name='dictionary' type='xs:string' use='required'/>
<xs:attribute name='destination_lang' type='xs:language' use='required'/>
<xs:attribute name='dictionary' type='xs:string' use='optional'/>
<xs:attribute name='engine' type='xs:string' use='optional' />
<xs:attribute name='reviewed' type='xs:boolean' use='optional' default='false'/>
</xs:extension>