To learn more about how the UML-to-XSD transformation generates
XSD elements from UML elements, you can copy a set of example models to your
workspace from the following location in your install directory: /plugins/com.ibm.xtools.transform.uml2.xsd/examples.
You can study the example source models and the output to learn how UML elements
correspond to XSD elements. You might find it helpful to apply the transformation
to the example models and view the generated output before you create your
source model.
Before you use the UML-to-XSD example model, you should read the information
that is available at . From the
Transformations/Configurations list,
select
UML to XSD. On the
Transformation
Description page, click
View Transformation Documentation.
You
must be in the Modeling perspective.
To use an example UML model as the source for the UML-to-XSD transformation:
- Click .
- In the New Project window, from the Wizards list,
expand Simple, select Project,
and click Next.
- In the Project name field, type a name,
and click Finish. The new simple project
is displayed in the Model Explorer view.
- From your install directory, copy /plugins/com.ibm.xtools.transform.uml2.xsd/examples to
the simple project in your workspace.
- Click .
- To explore the example models, in the Model Explorer view,
double-click the simple project that you created.
Read the information that is included in each model about using the
model as a source for the UML-to-XSD transformation.