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


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] RNG vs. XSD : is the use of abstract types andpolymorphism a good or bad thing for schemas for XML?

In my opinion, what is "conceptual" and what is a "Model" depends on the use cases. 
Suppose I want to model a language type hierarchy.  Then "Inheritance" is not just conceptual, its the actual model.
In fact, as far as I can tell, this is exactly what the type system in XQuery and XSLT are ... and as I'm learning, one reason RNG cannot be used to supply the type information for them.
That doesnt necessarily mean its 'wrong' ... just that it is not solving the particular problem of modeling types for XQuery and XSLT.

David A. Lee

> -----Original Message-----
> From: Costello, Roger L. [mailto:costello@mitre.org]
> Sent: Monday, March 12, 2012 2:13 PM
> To: xml-dev@lists.xml.org
> Subject: RE: [xml-dev] RNG vs. XSD : is the use of abstract types and
> polymorphism a good or bad thing for schemas for XML?
> James Clark asserts that it is not the role of a schema language to model
> "conceptual" relationships such as inheritance. Such relationships are best
> modeled elsewhere.
> Let us suppose that James is correct.
> Question: Is it best practice to avoid the inheritance machinery provided in XML
> Schema -- derive-by-extension, derive-by-restriction, and element substitution?
> What are the practical benefits of doing so?
> /Roger
> ___________________________________________________________________
> ____
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

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

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS