In this section, you will create a redefine relationship between the following schemas provided in the include_redefine sub-folder of the SchemaAgentExamples\Tutorial folder:
•book_order.xsd: This schema is structured to contain order details for mail order books.
In the course of this example, you will create a redefine relationship so that book_order.xsd includes and redefines types from event_registration.xsd, specifically the types for storing customer and credit card data.
Redefinition of schemas creates an implicit include relationship between the schemas and enables access to all elements in the referenced schema. It allows you to redefine (i.e., restrict or extend) the individual components of the referenced schema.
|Note:||In SchemaAgent Client, only the redefine relationship is created between the schemas. The actual redefinition of individual components can be done in XMLSpy.|
To create a redefine relationship:
1.In the Explorer window, select book_order.xsd from the include_redefine folder and drag it into the Design window that already contains the files event_registration.xsd and dvd_order.xsd.
2.Click on the small green triangle on the right side of the file box of event_registration.xsd and drag the connector line to the file box of book_order.xsd.
3.Release the mouse button over the word "redefines". A purple arrow that points from event_registration.xsd to book_order.xsd appears.
This arrow shows that a redefine relationship has been made between these schemas. Please note that the color of the triangle in the event_registration.xsd file box changed to indicate that relationships of different types are existing with this file box.