Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


uml to xml schemas

From: sreedevi crk <sreedevi_crk@-----.--->
To: xmlschema-dev@--.---
Date: 12/5/2005 11:50:00 AM
  Hi 
   
  We are working on a MDA architecture based project but new to xml and xmi and hypermodel etc. We are generating xml schemas from the uml models created in rational rose. 

I have two questions:

1) How are composition, associations and inheritance (class hierarchies) of uml models represented in xml schemas; When to use type substitution vs substitution groups in xml schemas to represent the above.
In a domain model, consider a class hierarchy with an abstract super class X, that has two or more concrete subclasses: 
a) A different class Y has an attribute whose type is X. 
b) A different class Z has association(s) with more than one concrete classes of X.
How the above cases are represented in xml schema; is it by type substitution or substitution groups?

2) Currently the auto generated xml schemas represent the class hierarchy of X as type substitution and at the same time has reference to substitution groups(as it is true by default in xml schemas) but expects the instance document to be user modified to enter type for xsi:type. But we thought that if substitution groups are used, manual changes to instance documents can be avoided and that the xml content is more readable. So is there a way to tweak the xml schema auto generators to produce substitution groups related code instead of type substitutions in xml schemas.

Note: I have read some articles, but got confused as there are different notions- Some say that substitution groups represent associations/inheritance/composition and type substitution represents polymorphism. But some contradict by using type substitution for every thing above???


Your input is highly appreciated as it is very crucial for my work progress.

Thanks in advance.


			
---------------------------------
Yahoo! Shopping
 Find Great Deals on Gifts at Yahoo! Shopping 


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent