IBM Version 5 Universal Remote User Manual


 
182 The XML Files: Development of XML/XSL Applications Using WebSphere Studio
Figure 9-5 Creating XML Schema
Add Content Model to the complex type.
Select the
ct. Right-click Add Content Model.
Add an Element Ref. under the model by:
Select the model right-click
Add Element Ref.
Set the reference as customer. Since the flight has one or more customers set
the minimum to one and the maximum to unbounded.
Add two attributes to the flight node, flightNo and departure.
Select
ct under Flight.
Right-click
Add Attribute. Attribute flightNo must be set as required since it is
a primary key.
Next add two child elements to the customer node. Your XML Schema should
look like Figure 9-6.
Example 9-1 is showing the actual XML Schema.