$25
Task 1 :
a) Read the situation below and prepare XML document to store relevant data.
The patient at INTI hospital receives medications prescribed by the doctor(s). The patient is described by their unique medical number, first name, last name, gender and medication received. The patient can receive one or many medications in a day. The medication is described by the name, company manufacture and drug registration number. The patient may be treated by one or more doctor. The doctor can be recognized by their registered number, their first name, last name and specialization.
b) Additional requirement:
i. Provide at least THREE (3) sample data for patient, doctor and medication.
ii. Use IDREF to reference between patient, doctor and medication.
iii. Store data about gender and IDREF in XML attribute.
iv. Use XML entity to store doctor’s specialization.
Task 2
a) From your XML document in Task 1, create a DTD document.
b) Use the XML Exchanger Editor to help validate DTD document.
Task 3:
a) Based from your XML in Task 1, create XML Schema document.
b) Use the XML Exchanger Editor to help validate XML Schema document.
Task 4 :
a) Prepare XSLT document to display the XML data (from Task 1). Read the following requirements, and include them in your XSLT.
i. Prepare THREE different table to display data about patient, doctor and medication.
ii. Sort the patient’s table by their last name.
iii. Sort the doctor’s table by the doctor’s registration number.
iv. Sort the medication’s table by the registration number (in descending order).
v. Change the background color for each Table heading. Use three different color.
vi. Display the doctor’s first name and last name in a single column.
vii. If the patient being treated by more than one doctor/ received more than one medication, then include a comma (,) to separate each data.