Re: [ubl] Global vs. Local -- Gunther's Recommendation

From
Dave Carlson
Date
2003-03-19T15:08:00+00:00
ID
Thread
Re: [ubl] Global vs. Local -- Gunther's Recommendation
Hi Eve,

I don't mean to suggest that there are *no* global elements.  But an approach I
find useful (and have used for the past 2 years when generating XSD from UML)
is to declare a global element for complexType, if that complexType has
complexContent (i.e. an ABIE).

The global element declaration is *always* in the same schema and same target
namespace as its complexType.  This leads to a very predictable pattern and
easily automatable mapping to/from UML (or other modeling environments,
including spreadsheets).  The global element name should always be derived from
the type name, e.g. "BuyerParty" is the global element for a complexType
"BuyerPartyType".  Any other element names, especially those based on
simpleTypes, are local elements declarations.

Dave