[standards-jig] RFC schema update for 6.2.4

David Waite mass at akuma.org
Tue Feb 5 22:09:11 UTC 2002


Two issues:
1. 'x' is *NOT* a child element of message. it is the root element for 
whatever namespace it is in, and there is no restriction that it has to 
be 'x'. For instance, xhtml-formatted text would most probably be within 
an element named 'html'.
2. message thus needs to include any namespace as a child.

And a comment - should we specify that you can only have a single body, 
subject, thread, etc. within a message?

-David Waite

hhager at orgo.com wrote:

>For 6.2.4 Schema, here is an attempt to clean-up:
>
><schema xmlns="http://www.w3.org/2000/10/XMLSchema">
>
>   <element name="message">
>      <complexContent>
>         <choice minOccurs="0" maxOccurs="unbounded">
>            <element ref="body" />
>            <element ref="subject" />
>            <element ref="error" />
>            <element ref="thread" />
>            <element ref="x" />
>         </choice>
>         <attribute name="to" type="string" use="optional" />
>         <attribute name="from" type="string" use="optional" />
>         <attribute name="id" type="string" use="optional" />
>         <attribute name="type" use="optional" type="typeAtt" />
>      </complexContent>
>   </element>
>
>   <simpleType name="typeAtt">
>      <restriction base="string">
>         <enumeration value="normal" />
>         <enumeration value="error" />
>         <enumeration value="chat" />
>         <enumeration value="groupchat" />
>         <enumeration value="headline" />
>      </restriction>
>   </simpleType>
>
>   <element name="body" type="anyType" />
>
>   <element name="subject" type="anyType" />
>
>   <element name="error" type="anyType" />
>
>   <element name="thread" type="anyType" />
>
>   <element name="x" type="anyType" />
>
></schema>
>
>========o00o========
>John W. Hager -- orgo services
>email: hhager at orgo.com
>  tel: 619.261.9590
>
>
>_______________________________________________
>Standards-JIG mailing list
>Standards-JIG at jabber.org
>http://mailman.jabber.org/listinfo/standards-jig
>






More information about the Standards mailing list