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

Re: RNG vs. XSD : is the use of abstract types andpolymorphis

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Mon, 12 Mar 2012 12:41:19 -0400

Re:  RNG vs. XSD :  is the use of abstract types andpolymorphis
Costello, Roger L. scripsit:

> If the reason is (1) then I would like to know why abstract types and
> polymorphism are not appropriate for a schema language for XML? Are
> there dangers in designing schemas for XML that use abstract types
> and polymorphism? Does James Clark and MURATA Makoto recommend, when
> using XML Schemas, avoiding its abstract types and polymorphism?

See http://www.thaiopensource.com/relaxng/design.html#section:15 for
James's thinking on inheritance in schema languages.

I would add that XML Schema expresses three kinds of constraints:
schema-instance constraints (the schema limits what the instance can
contain), schema-schema constraints (parts of the schema limits what
other parts of the schema can contain), and instance-instance constraints
(parts of the instance limit what other parts of the instance can contain,
as specified by the schema).  Type extension and restriction belong to
the second class of constraints, but RELAX NG expresses only the first
class (except for DTD-compatible ID and IDREF(S), which are a trivial
example of the third class).

-- 
John Cowan  http://ccil.org/~cowan    cowan@ccil.org
There are books that are at once excellent and boring.  Those that at
once leap to the mind are Thoreau's Walden, Emerson's Essays, George
Eliot's Adam Bede, and Landor's Dialogues.  --Somerset Maugham


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


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.