COMP60370: Two Formats Coursework

All written coursework is to be handed in to the postgraduate office by the following Monday, 12:00 am. In addition, please email XML documents, HTML documents, schemas, stylesheets, etc. to me at bparsia@cs.man.ac.uk with subject "COMP60370 Coursework". This will help me to check your answers and guard against plagiarism.

  1. [12 marks]
    In 500 words or less, discuss whether there are exceptions to Postel's law. Is HTML an exception? Is XHTML? Is it application dependent? (Be specific with your examples or counterarguments. E.g., if you argue that there are exceptions, you should refute at least one argument that there are not.)
  2. [20 marks]
    Create a modified phrase.rnc such that:
  3. [20 marks]
    Modify your XSLT stylesheet from question 13.b to emit HTML which uses, in the content, only <div> and <span> with the appropriate classes. Provide a CSS style sheet that formats that HTML to look like the HTML your original 'sheet generated. Write a stylesheet that goes from your emitted HTML back to your original XML format.