1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-28 12:12:22 -05:00
xeps/xep.xsd

356 lines
12 KiB
XML
Raw Normal View History

<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='http://www.xmpp.org/extensions'
xmlns='http://www.xmpp.org/extensions'
elementFormDefault='qualified'>
<xs:element name='xep'>
<xs:annotation>
<xs:documentation>
This schema defines the document format for XMPP Extension
Protocols (XEPs). For further information about XEPs, visit:
http://www.xmpp.org/extensions/
The canonical URL for this schema is:
http://www.xmpp.org/extensions/xep.xsd
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref='header'/>
<xs:element ref='section1' maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='header'>
<xs:complexType>
<xs:sequence>
<xs:element name='title' type='xs:string'/>
<xs:element name='abstract' type='xs:string'/>
<xs:element name='legal' type='xs:string'/>
<xs:element name='number' type='xs:byte'/>
<xs:element ref='status'/>
<xs:element ref='type'/>
<xs:element name='jig' type='xs:string'/>
<xs:element name='approver' type='xs:string'/>
<xs:element ref='dependencies'/>
<xs:element ref='supersedes'/>
<xs:element ref='supersededby'/>
<xs:element name='shortname' type='xs:NCNAME'/>
<xs:element ref='schemaloc' minOccurs='0' maxOccurs='unbounded'/>
<xs:element name='registry' type='empty' minOccurs='0'/>
<xs:element name='expires' type='xs:string'/>
<xs:element ref='author' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='revision' minOccurs='0' maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='status'>
<xs:simpleType>
<xs:restriction base='xs:NCNAME'>
<xs:enumeration value='Active'/>
<xs:enumeration value='Deferred'/>
<xs:enumeration value='Deprecated'/>
<xs:enumeration value='Draft'/>
<xs:enumeration value='Experimental'/>
<xs:enumeration value='Final'/>
<xs:enumeration value='Obsolete'/>
<xs:enumeration value='Proposed'/>
<xs:enumeration value='ProtoXEP'/>
<xs:enumeration value='Rejected'/>
<xs:enumeration value='Retracted'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name='type'>
<xs:simpleType>
<xs:restriction base='xs:string'>
<xs:enumeration value='Historical'/>
<xs:enumeration value='Humorous'/>
<xs:enumeration value='Informational'/>
<xs:enumeration value='Organizational'/>
<xs:enumeration value='Standards Track'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name='dependencies'>
<xs:complexType>
<xs:sequence minOccurs='0' maxOccurs='unbounded'>
<xs:element name='spec' type='xs:string'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='supersedes'>
<xs:complexType>
<xs:sequence>
<xs:element name='spec' type='xs:string'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='supersededby'>
<xs:complexType>
<xs:sequence>
<xs:element name='spec' type='xs:string'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='schemaloc'>
<xs:complexType>
<xs:sequence>
<xs:element name='ns' type='xs:string' minOccurs='0'/>
<xs:element name='url' type='xs:string'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='author'>
<xs:complexType>
<xs:sequence>
<xs:element name='firstname' type='xs:string'/>
<xs:element name='surname' type='xs:string'/>
<xs:element name='authornote' type='empty' minOccurs='0'/>
<xs:element name='org' type='xs:string' minOccurs='0'/>
<xs:element name='email' type='xs:string'/>
<xs:element name='jid' type='xs:string' minOccurs='0'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='revision'>
<xs:complexType>
<xs:sequence>
<xs:element name='version' type='xs:string'/>
<xs:element name='date' type='xs:dateTime'/>
<xs:element name='initials' type='xs:NCName'/>
<xs:element ref='remark'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='remark'>
<xs:complexType>
<xs:choice>
<xs:element ref='p' minOccurs='0' maxOccurs='1'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='1'/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name='section1'>
<xs:complexType>
<xs:choice maxOccurs='unbounded'>
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='section2' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
<xs:attribute name='topic' type='xs:string' use='required'/>
<xs:attribute name='anchor' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='section2'>
<xs:complexType>
<xs:choice maxOccurs='unbounded'>
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='section3' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
<xs:attribute name='topic' type='xs:string' use='required'/>
<xs:attribute name='anchor' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='section3'>
<xs:complexType>
<xs:choice maxOccurs='unbounded'>
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='section4' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
<xs:element name='code' type='xs:string' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
<xs:attribute name='topic' type='xs:string' use='required'/>
<xs:attribute name='anchor' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='section4'>
<xs:complexType>
<xs:choice maxOccurs='unbounded'>
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
<xs:attribute name='topic' type='xs:string' use='required'/>
<xs:attribute name='anchor' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='div'>
<xs:complexType>
<xs:choice maxOccurs='unbounded'>
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
<xs:attribute name='class' type='xs:string' use='optional'/>
<xs:attribute name='style' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='p' type='markup'/>
<xs:element name='ul'>
<xs:complexType>
<xs:sequence>
<xs:element ref='li' minOccurs='1' maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='ol'>
<xs:complexType>
<xs:sequence>
<xs:element ref='li' minOccurs='1' maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='start' type='xs:byte' use='optional'/>
<xs:attribute name='type' type='xs:NCName' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='li' type='markup'/>
<xs:element name='img'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='empty'>
<xs:attribute name='source' use='required'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='link'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='url' use='required'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='note' type='markup'/>
<xs:element name='example'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='caption' use='optional'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='code'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='caption' use='optional'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='table'>
<xs:complexType>
<xs:sequence>
<xs:element ref='tr' minOccurs='1' maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='caption' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='tr'>
<xs:complexType>
<xs:choice>
<xs:element ref='th' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='td' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name='th'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='colspan' use='optional'/>
<xs:attribute name='rowspan' use='optional'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='td'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='colspan' use='optional'/>
<xs:attribute name='rowspan' use='optional'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:complexType name='markup' type='mixed'>
<xs:choice minOccurs='0' maxOccurs='unbounded'>
<xs:element name='cite' type='xs:token'/>
<xs:element name='em' type='xs:token'/>
<xs:element ref='img'/>
<xs:element ref='link'/>
<xs:element ref='note'/>
<xs:element name='span' type='xs:token'/>
<xs:element name='strong' type='xs:token'/>
<xs:element name='tt' type='xs:token'/>
</xs:choice>
<xs:attribute name='class' type='xs:string' use='optional'/>
<xs:attribute name='style' type='xs:string' use='optional'/>
</xs:complexType>
<xs:simpleType name='empty'>
<xs:restriction base='xs:string'>
<xs:enumeration value=''/>
</xs:restriction>
</xs:simpleType>
</xs:schema>