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


Help: OASIS Mailing Lists Help | MarkMail Help

ubl message

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

Subject: Re: [ubl] use of 'ID' in documents

but i think you will find xsd:choice is not allowed by the UBL NDRs

Betty Harvey wrote:
I am not sure how you would handle this in the spreadsheets but W3C
schema is capable of modeling this situation:

 <xsd:choice minOccurs="1">
	<xsd:element ref="BuyersID"/>
	<xsd:element ref="SellersID"/>
<xsd:element ref="CopyIndicatory"/>
. . .

If the choice is optional, i.e., no BuyersID or SellersID, then the
"minOccurs" attribute would be set to 0.


On Thu, 11 Aug 2005, Tim McGrath wrote:

this comes from trying to implement a rule that goes along the lines of...

"all documents must have an ID.  However with some documents (eg Order) 
it may be either the BuyersID and/or the SellersID"

unfortunately we dont have schema (or spreadsheet) syntax for "either 
are optional but one must be used" - which is actually a common rule in 
the real world.  What we have don is the best we can.

Anne Hendry wrote:

We notice that some documents contain an 'ID' element.  The 'ID' 
elements seem to be mandatory.  The documents that don't have 'ID' 
seem to have 'BuyersID' and 'SellersID', but those are optional.

Is this an intended modeling aspect that assumes in the documents that 
don't have 'ID' the users would implement either a BuyersID or 
SellersID, even though they are both optional?  Do we want to 
duplicate this model for new documents?  When do you determine you 
want a mandatory ID vs. two optional Buyers|Sellers IDs?


To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  You may a link to this group and all your TCs in 



tim mcgrath
phone: +618 93352228  
postal: po box 1289   fremantle    western australia 6160

DOCUMENT ENGINEERING: Analyzing and Designing Documents for Business Informatics and Web Services

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