maxOccurs="1" for header and body?

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