ubl-ndrsc message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [ubl-ndrsc] Containers
- From: "Burcham, Bill" <Bill_Burcham@stercomm.com>
- To: UBL NDR <ubl-ndrsc@lists.oasis-open.org>
- Date: Wed, 2 Jul 2003 16:29:49 -0500
Title: Message
On June 2, 2003,
Chin Chee-Kai
<cheekai@softml.net> wrote:
If an item has multiplicity 1..N, then
it is containable and the
container is 1..1. Think that was the NDR
conclusion earlier on.
The challenge comes from the other case:
Given that the item has
multiplicity 0..N, should the container be 0..1 or
1..1?
I think in the 1..N case the container element should
have multiplicity 1..1 and the contained element can be minOccurs=1,
maxOccurs=unbounded or whatever.
I
think in the 0..N case the container element should have multiplicity 0..1 and
the contained element can be minOccurs=1, maxOccurs=unbounded or
whatever.
The attached .zip file shows an example. A person
has 2 parents and zero-or-more siblings. I've modeled this as a Person
(global) element of (complex) type Person. A Person has a (local) Parents
element (minOccurs=1, maxOccurs=1) which in turn has a series of Parent element
(minOccurs=2, maxOccurs=2). A Person has a Siblings element (minOccurs=0,
maxOccurs=1) which in turn has a series of Sibling element (minOccurs=0,
maxOccurs=unbounded).
Person.zip
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]