[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [wsdm] Schema extension vs OO
William, not any major correction, but I think the second sentence, "In the general case...", needs an "and" before the third clause. Also, I would use "subtyping" rather than "subclassing" when referring to schemas. After all, isn't it your point that XML schemas do NOT contain class definitions? :-) Kirk Wilson Architect, Development Office of the CTO 802 765-4337 -----Original Message----- From: Vambenepe, William N [mailto:vbp@hp.com] Sent: Wednesday, October 12, 2005 3:38 PM To: wsdm@lists.oasis-open.org Subject: [wsdm] Schema extension vs OO I have an AI to write a blurb about the differences between schema extension and OO inheritance, so here we go: XML instance documents and object instances often have widely different usages, requirements and constraints. In the general case, one can't introspect an XML instance document to discover its schema, the entire set of schema documents might not be readily available like a class library is, XML schemas may have much higher requirements of extensibility without coordination (they are the foundation for loose coupling). For these reasons and because of certain aspects of the schema language (for example the fact that derivation by restriction requires the repetition of the parent type and other reasons that make extension by composition more flexible and robust), extension by composition is often a preferable approach for XML than extension by subclassing. It is therefore not recommended in the general case to map OO classes to XML documents by replicating the class hierarchy using schema subclassing. Until Andrea corrects me... :-) William --------------------------------------------------------------------- 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 OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]