Professional Documents
Culture Documents
Assignment 2 (9%)
[Learning Outcomes 2, 3]
Due by: 23:59, Tuesday March 10 2015
Overview
In this assignment you are going to develop your professional Curriculum Vitae (CV)
in XML. Through this assignment we will practice the use of XML, XSD, XSL, HTML,
and CSS.
(3 marks)
iv. <LanguageSkills>
(3 marks)
(4 marks)
4. <Name> should have the following 3 child elements, which can appear in
any order.
i. <FirstName>
ii. <MiddleName>
iii. <LastName>
5. <FirstName> contains the first name, with the type of xs:string.
6. <MiddleName> contains the middle name, with the type of xs:string,
this is an optional element.
7. <LastName> contains the last name, with the type of xs:string.
8. <Email> contains the email address, with the type of xs:string.
9. <Photo> contains text in URL format (use the type xs:anyURI).
Part III. Create an XSL file that transforms your CV to HTML (35 marks)
Create myCV.xsl that transforms myCV.xml to an HTML page. Please note the
following requirements:
1. The transformed HTML page should contain 3 divisions (i.e., <div>):
Header
Content
Footer
(5 marks for implementing Header, Content and Footer divisions.)
2. In the Content division:
Note: You do not need to submit the generated myCV.html to us. We will use
Google Chrome to open your myCV.xml to inspect your transformation.
(Therefore you need to add some codes into myCV.xml to link it with myCV.xsl).
Part IV. Create CSS to style the HTML page (15 marks)
Create myCV.css that styles the transformed HTML page. Please note the
following requirements:
1. Modify your myCV.xsl to link the generated HTML code with the CSS file. (2
marks)
2. In myCV.css, use CSS to display a background image in the Header division (2
marks)
3. Include at least one selector to style at least one list (paragraph, heading
image, table) element in the Content division, i.e., at least 5 selectors to style
the Content division. (10 marks: 2 marks for styling each of the 5 elements)
4. Use CSS to style the text in the Footer division (1 mark)
Submission
You should submit your files (myCV.xsd, myCV.xml, myCV.xsl, myCV.css, images, etc.)