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

Re: XML Schemas: Best Practices

  • From: Jeff Rafter <jeffrafter@e...>
  • To: "Roger L. Costello" <costello@m...>
  • Date: Thu, 18 Jan 2001 09:13:46 -0800

roger l. costello xml

> No, using <restriction> does not allow me to put a Reviewer element at
> the top of Book's content model.

Oof... must have been late-- I don't know what I was thinking.  You are
absolutely correct.

> I don't know what you mean by "multiple layers of inheritance".  Could
> you expand upon this please?  Thanks!  /Roger

What I meant was certain types may be extended multiple times by different
people.  I think the example of BookType is a good one

   <complexType name="BookType">
            <element name="Title" type="string"/>
            <element name="Author" type="string"/>
            <element name="Date" type="year"/>
            <element name="ISBN" type="string"/>
            <element name="Publisher" type="string"/>
    <complexType name="NonfictionBookType">
            <extension base="c:BookType">
                    <element name="Reference" type="boolean"/>
    <complexType name="EncyclopediaBookType">
            <extension base="c:NonfictionBookType">
                    <element name="Volume" type="string"/>

and so on... "multiple layers of inheritence" is probably bad use of the
terms, but in the above we can see that EncyclopediaBookType extends
NonfictionBookType extends BookType.  It seems that if we are planning for
extension we often need to consider that those extensions will be extended,
will be extended...

Jeff Rafter


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.
First Name
Last Name
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.