W3C home > Mailing lists > Public > xml-dist-app@w3.org > December 2001

maxOccurs="1" for header and body?

From: Paul Denning <pauld@mitre.org>
Date: Thu, 20 Dec 2001 10:09:28 -0500
Message-Id: <5.1.0.14.0.20011217115414.03e410a8@mailsrv1.mitre.org>
To: xml-dist-app@w3.org
Section 4 of Part 1 [1] states that a document element information item has 
... one or two element information items (optional header and mandatory body).

The xml schema for the envelope [2] does not agree with the text in the spec.
Current schema fragment:

<xs:complexType name="Envelope">
  <xs:sequence>
     <xs:element ref="tns:Header" minOccurs="0" />
     <xs:element ref="tns:Body" minOccurs="1" />
  </xs:sequence>
     <xs:anyAttribute namespace="##other" processContents="lax" />
</xs:complexType>

Proposed replacement (add maxOcurrs):

<xs:complexType name="Envelope">
  <xs:sequence>
     <xs:element ref="tns:Header" minOccurs="0" maxOccurs="1"/>
     <xs:element ref="tns:Body" minOccurs="1" maxOccurs="1"/>
  </xs:sequence>
     <xs:anyAttribute namespace="##other" processContents="lax" />
</xs:complexType>

[1] http://www.w3.org/TR/2001/WD-soap12-part1-20011217/#soapenv
[2] http://www.w3.org/2001/12/soap-envelope
Received on Thursday, 20 December 2001 10:10:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 22:28:13 UTC