[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Schema question


question phoning

The problem is:
there are a, b, c and d entities that can be represented with the same type
x
there is e entity that can be represented with type y which is derivation
of type x.
there is need to identify a, b, c, d and distinguish between them
all these entities are used in the same transaction where any combination
of entities is allowed
options:

1.use elements a type x, b type x, c type x, d type x and e type y; place
them in the transaction as optional elements; the solution is clean but
requires rigid order of elements in the transaction.

2.create types for each entity: type ax, type bx, type cx ....  ; use
xsi:type in the transaction; result flexible structure, allows any order of
entities but requires multiple definition of the same type.

3. use the same type x for a,b,c and d and use the xsi:type in the
transaction and use an additional element in the type x to distinguish
between a, b, c and d. The solution is flexible, but as y inherits from x,
the same additional element will appear in y. y type uniquely identifies
entity e and this additional element is not required. By being there it
provides two sources of information for the identification of entity e.
This may confuse the application, not mentioning possibility that the two
information may be inconsistent.

Please advice the preference of the above options or .... even better ...
suggest more appropriate options.

Thank You

nada



------------------------------------------
This e-mail is confidential.  If you are not the intended recipient, any use, disclosure or copying of this document is unauthorised and prohibited.  If you have received this document in error, please delete the email and notify me by return email or by phoning the NEMMCO Helpdesk on 1300 300 295.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.