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.
- [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.)
- [20 marks]
Create a modified phrase.rnc such that: - The constraint that
dfns do not contain dfns is expressed, and - that constraint is expressed entirely in RELAX NG, and
- the current legal content is still legal
- (Note: This requires a bit of spelunking! esp. for the last part.)
- To
ease this a bit, I did a bit of sanitization of the core files to make
them valid-in-oxygen. Note, I didn't do EVERY file, so you need to
check that this subset actually covers the definition of
<dfn>. If not, you may have to sanitize additional files (mostly, dumbing attribute content types to string will be sufficient):
- [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.