Introduction: |
XSD supports a much more elaborate type system than DTDs. In this assignment, the goal is to convert an existing DTD to an XSD, and to refine the XSD by adding specific simple types, some of which has to be derived simple types. |
---|---|
Instructions: |
In this assignment, the goal is to create an XSD for the XML document, and to design some simple types that capture the constraints for the XML document as narrowly as possible. Start by converting the DTD to an XSD, using the functionality of the XML editor you are using. Clean up the resulting XSD by using reasonable naming conventions for all types, and by deciding on a design pattern (named vs. anonymous types and local vs. global elements). Then focus on the simple types and refine the generated type definitions by adding facets (or additional types) to create your own simple types. Try to capture as many constraints as possible in those facets, so that validation according to the XSD will reveal as many potential problems in the XML as possible. Before you submit your XSD, please make sure that it satisfies all of the following requirements:
Please send the XML and the XSD to yliu@ischool.berkeley.edu. Please send plain text email with these files as attachments. HTML emails will not be accepted. |
Please send comments to dret@berkeley.edu
Last modification: Tuesday, 21-Dec-2010 03:22:21 MET |