W3C home > Mailing lists > Public > xml-dist-app@w3.org > January 2002

Schema for the proposed (accepted?) faultcode structure

From: Jacek Kopecky <jacek@systinet.com>
Date: Thu, 3 Jan 2002 16:53:27 +0100 (CET)
To: <xml-dist-app@w3.org>
Message-ID: <Pine.LNX.4.33.0201031627340.13354-100000@mail.idoox.com>
 Hello all, 8-)
 I took the action of creating the XML Schema schema for the new
structure of the env:Fault/faultcode element. Here it is
(disclaimer at [1]):

<xs:complexType name="faultcodeType">
  <xs:sequence>
    <xs:element name="value"
                type="tns:faultcodeEnum"/>
    <xs:element name="subcode"
                type="tns:subcodeType"
                minOccurs="0"/>
  </xs:sequence>
</xs:complexType>

<xs:simpleType name="faultcodeEnum">
  <xs:restriction base="xs:QName">
    <xs:enumeration value="tns:DataEncodingUnknown"/>
    <xs:enumeration value="tns:DTDNotSupported"/>
    <xs:enumeration value="tns:MustUnderstand"/>
    <xs:enumeration value="tns:Receiver"/>
    <xs:enumeration value="tns:Sender"/>
    <xs:enumeration value="tns:VersionMismatch"/>
  </xs:restriction>
</xs:simpleType>

<xs:complexType name="subcodeType">
  <xs:sequence>
    <xs:element name="value"
                type="xs:QName"/>
    <xs:element name="subcode"
                type="tns:subcodeType"
                minOccurs="0"/>
  </xs:sequence>
</xs:complexType>


Of course, I am not an XML Schema Expert so it may contain
mistakes.

                   Jacek Kopecky

                   Senior Architect, Systinet (formerly Idoox)
                   http://www.systinet.com/

[1] http://catalog.com/hopkins/text/disclaimers.html
Received on Thursday, 3 January 2002 10:53:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:05 GMT