Exploring example UML-to-XSD transformation models

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 Modeling > Transform > Configure Transformations. 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:
  1. Click File > New > Project.
  2. In the New Project window, from the Wizards list, expand Simple, select Project, and click Next.
  3. In the Project name field, type a name, and click Finish. The new simple project is displayed in the Model Explorer view.
  4. From your install directory, copy /plugins/com.ibm.xtools.transform.uml2.xsd/examples to the simple project in your workspace.
  5. Click File > Refresh.
  6. 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.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.