[standards-jig] RFC schema update for 6.2.4

hhager at orgo.com hhager at orgo.com
Wed Feb 6 03:01:21 UTC 2002


Ok attached is an update on this one... 

: 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
: >
: 
: 
: 
: _______________________________________________
: Standards-JIG mailing list
: Standards-JIG at jabber.org
: http://mailman.jabber.org/listinfo/standards-jig
: 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jab624.xsd
Type: text/xml
Size: 1172 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/standards/attachments/20020205/2003b7b1/attachment.xml>


More information about the Standards mailing list