|
[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
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








