This text file contains sample code fragments from:
Section 13.1 - Reusable Schema Design
Chapter 13 - Advanced XML Schema Part II: Reusability, Relational Design, and Industry Schemas
Book - Web Service Contract Design & Versioning for SOA
Series - The Prentice Hall Service Technology Series from Thomas Erl
Site - www.servicetechbooks.com
Example 13.1 - The xsd:include statement with a schemaLocation attribute pointing to the schema document to be included.
...
Example 13.2 - The xsd:include element positioned as the child element of the xsd:schema element.
Example 13.3 - The new Purchasing Common schema with several common types that can be reused by other schemas.
Example 13.4 - The Purchase Order schema with an xsd:include statement that points to the Purchasing schema.
Example 13.5 - A common schema comprised of a library of common, reusable types.
Example 13.6 - The Purchase Order schema reusing three types from the Purchasing Common schema.
12345
2006-10-15
444403
Neighborhood Game Stores, Inc.
Steve Smith
231-555-1122
123 Main St.
Suite 300
Cleveland
OH
37311
USA
...
Example 13.7 - A message instance containing elements from the common schema. Because these elements originated from a different namespace, they need to be prefixed with common.
Example 13.8 - The Invoice schema including and then reusing the types from the Purchasing schema.