CSC 365 - Internet Programming
Spring 2009
HW3 - Due Date: 10/6/2009
- Design an XML document to store information about patients
in a hospital. Information about patients must include name (in three
parts), Social Security Number, age, room number, primary insurance company
-- including member identification number, group number, phone number, and
address -- secondary insurance company (in the same subparts as for the
primary insurance company), known medical problems, and known drug allergies.
Your document must use both attributes and nested elements. Make up example data
for at least four patients.
- Write a DTD for the document
described above with the following restrictions: The name, Social Security
Number, age, room number, and primary insurance company are required. All
the other elements are optional, as are middle names. Make sure to test the
validity of your XML document using a validating XML parser.
- Create a CSS style sheet for your XML document and use it
to display the document in a reasonable visual manner.
- Create an XSLT style sheet for your XML document and use it
to display the document in a reasonable visual manner.
Please hand in both hard and electronic copies of your solutions on the due
date. The electronic copy should be uploaded on eccentric in a folder named HW3.
Please remember to write your name and your computer public id on your files.
(Note: Your files will be graded using IE 8.)Have Fun!