mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -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:
parent
4988e2709a
commit
3020652e01
12
xep-0171.xml
12
xep-0171.xml
@ -50,6 +50,12 @@
|
|||||||
<surname>Raymond</surname>
|
<surname>Raymond</surname>
|
||||||
<email>braymond@echostorm.net</email>
|
<email>braymond@echostorm.net</email>
|
||||||
</author>
|
</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>
|
<revision>
|
||||||
<version>1.1</version>
|
<version>1.1</version>
|
||||||
<date>2011-06-15</date>
|
<date>2011-06-15</date>
|
||||||
@ -416,7 +422,7 @@
|
|||||||
|
|
||||||
<xs:element name='x'>
|
<xs:element name='x'>
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:element ref='source' use='required'/>
|
<xs:element ref='source' use='optional'/>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element ref='translation' use='required' minOccurs='1'/>
|
<xs:element ref='translation' use='required' minOccurs='1'/>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
@ -439,8 +445,8 @@
|
|||||||
<xs:extension base='empty'>
|
<xs:extension base='empty'>
|
||||||
<xs:attribute name='charset' type='xs:string' use='optional'/>
|
<xs:attribute name='charset' type='xs:string' use='optional'/>
|
||||||
<xs:attribute name='source_lang' type='xs:language' 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='destination_lang' type='xs:language' use='required'/>
|
||||||
<xs:attribute name='dictionary' type='xs:string' use='required'/>
|
<xs:attribute name='dictionary' type='xs:string' use='optional'/>
|
||||||
<xs:attribute name='engine' 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:attribute name='reviewed' type='xs:boolean' use='optional' default='false'/>
|
||||||
</xs:extension>
|
</xs:extension>
|
||||||
|
Loading…
Reference in New Issue
Block a user