home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Book HomeXML SchemaSearch this book

2.3. First Findings

Even in this very simple schema, we have learned a lot about what W3C XML Schema has to offer.

2.3.3. Flat Design, Global Components

Finally, note the flatness of this schema: each component (element or attribute) is defined directly under the xs:schema document element.

Components defined directly under the xs:schema document element are called "global" components. These have a couple of notable properties: they can be referenced anywhere in the schema as well as in the other schema that may include or import this schema (we will see in the next chapters how to import or include schemas), and all the global elements can be used as document root elements.

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.