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

Re: maxOccurs="1" for header and body?

From: Jacek Kopecky <jacek@systinet.com>
Date: Thu, 20 Dec 2001 16:13:44 +0100 (CET)
To: Paul Denning <pauld@mitre.org>
cc: <xml-dist-app@w3.org>
Message-ID: <Pine.LNX.4.33.0112201613080.19692-100000@mail.idoox.com>
 Paul, I think maxOccurs="1" is the default in a sequence. 8-)
 Regards,

                   Jacek Kopecky

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



On Thu, 20 Dec 2001, Paul Denning wrote:

 > 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:13:46 UTC

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