XEP-0234: Add missing received and desc elements in schema.

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-04 22:05:54 +01:00 committed by Sam Whited
parent c2a60d7e5e
commit f3d3dd21ec
1 changed files with 15 additions and 0 deletions

View File

@ -1017,11 +1017,26 @@ a=file-range:1024-*]]></code>
</xs:complexType>
</xs:element>
<xs:element name='received'>
<xs:complexType>
<xs:attribute name='creator' use='required'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='initiator'/>
<xs:enumeration value='responder'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name='name' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
<xs:complexType name='fileTransferElementType'>
<xs:all xmlns:h='urn:xmpp:hashes:2' minOccurs='0'>
<xs:element name='date' type='xs:date'/>
<xs:element name='media-type' type='xs:string'/>
<xs:element name='name' type='xs:string'/>
<xs:element name='desc' type='xs:string'/>
<xs:element name='size' type='xs:positiveInteger'/>
<xs:element name='range' type='fileTransferRangeType'/>
<xs:element ref='h:hash' minOccurs='0' maxOccurs='unbounded'/>