Design a DTD for a specific class of documents. You will also design and implement a system to apply appropriate transformation on XML documents.
Write a DTD with the following structure:
ï¿½ A course is made up of a name and one or more modules.
ï¿½ A module is made up of a module name, ID, an optional block week and one or more module leaders in that order.
ï¿½ The course name has a required attribute to hold the course id.
ï¿½ A module name has an optional attribute mode to state if the module is core or optional.
DTD ï¿½ Create and use one external DTD to validate any xml documents created. Table 1 shows the data to use for the XML documents.
Create an index page with the following links:
i. Modules (CSS)
ii. Modules (XSL)
iii. Modules (Module Leaders)
iiii. Modules (Dates)
a. Modules (CSS) - Use CSS to display all module names, ids and block week dates.
b. Modules (XSL) - Display an XSL-constructed HTML table containing all module names, ids and block week dates.
c. Modules (Module Leaders) - Display a page containing an XSL-constructed HTML table containing each module name, id and initials of the module leader. Use XSL to sort the output by the module leader initials.
d. Modules (Dates) - Display a page containing an XSL-constructed HTML table containing all modules ordered by the block week dates. In addition, modules that are core modules should be highlighted with an asterisk (*) next to the module name (added by XSL).
Make sure you include:
ï¿½ One external DTD with appropriate definitions.
ï¿½ Valid XML documents.
ï¿½ CSS used to display XML data as specified (part a).
ï¿½ XSL used to transform XML data into HTML output as specified (parts b-d).
ï¿½ One external CSS used for the formatting of HTML output.
=======TABLE 1 - DATA TO USE======
MSc Internet Technologies (Course ID: 12435)
-Mode- -Module Name- -ID- -Block week- -Module Leader-
-Core- Internet Issues ECO7H1 25 Sep 2010 D P
Internet Information ECO7H3 14 Jan 2011 W P #
-Option-Web Design ECO7H2 11 Mar 2011 V B
Java ECO7H4 18 Feb 2011 D D
Server programming ECO7H5 19 Nov 2010 W P
Databases ECO7H7 1 Apr 2011 V B
Multimedia ECO7H8 15 Dec 2010 A A
When the work is done, I need:
All XML, DTD, XSL and CSS files and a document (possibly on ms word) of the web application code.