OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-fpsc message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [ubl-lcsc][ubl-fpsc] second draft of example instances for 0.80-3.1


On Wed, 2 Jul 2003, Tim McGrath wrote:

>>c. In some of Stephens' instances he has chosen to specify the ID
>>element even though it has no value and it is optional (e.g.
>>JoineryInvoice contains.  However, I think we don't have to do this. For
>>example,
>>        <cat:Address>
>>                <cat:ID/>
>>                <cat:Street>Marsh Lane</cat:Street>
>>                <cat:CityName>Nowhere</cat:CityName>
>>                <cat:PostalZone>NR18 4XX</cat:PostalZone>
>>                <cat:Countrysubentity>Norfolk</cat:Countrysubentity>
>>            </cat:Address>
>>- i don't think we need the "  <cat:ID/> " tag at all - is that correct?

For AddressType, you're right as AddressType has ID's minOccurs="0".
But for ShipmentType's ID, minOccurs="1", thus giving an
empty structure as shown below:


>>> Chin Chee-Kai wrote:
>>>
>>>> However, because the minOccurs for IDs in some Reusable types,
>>>> such as PartyType and ShipmentType, are all "1", it necessitates the
>>>> instances to carry empty <cat:ID/>s around, just like Stephen's
>>>> instances have done.  This has caused, for example, the last part of
>>>> "JoineryDespatch_0_8-3-1_InstanceDraft_02.xml"
>>>> to contain an empty structure such as:
>>>>
>>>>      <da:ActualShipment><cat:ID /></da:ActualShipment>
>>>>
>>>> But then for AddressType, for example, the ID is allowed to be
>>>> un-instantiated (minOccurs="0").  There are other examples for both
>>>> minOccurs="0" and minOccurs="1" in Reusable.


I wonder if it will be possible to set all minOccurs="0" for all
Reusable and business document types.  For cases where it is a 
business necessity to have an occurrence and an instance doesn't
have (because minOccurs="0" will allow that), applications can 
always detect the absence of tag and interpret with a default
handling appropriate to the operating environment.




Best Regards,
Chin Chee-Kai
SoftML
Tel: +65-6820-2979
Fax: +65-6743-7875
Email: cheekai@SoftML.Net
http://SoftML.Net/




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]