Computer Science Question

(80 Points in total)

Step 1 – Selectively Displaying Movies (30 points)

Continue the XSLT you wrote for Assignment 1 by doing the following: There must be two tables: (1) Only movies made before 2005, and (2) Movies made from 2005 onward. In each table, Display the list of genres in a single cell as a comma-delimited list. However, in the XML file, each of the genres for each movie must be in a separate element. I expect that most movies contain multiple genres, so please fix your XML file ifnecessary.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Step 2 – Displaying a List of Directors for each table (15 points)

Append a bulleted list of directors below each of the existing tables. The names should be sorted, but you may list duplicate names. (Omitting duplicates in a list is an advanced technique, which you can read about online.)

Step 3 – Add a footer row to each Table (15 points)

Add a footer row to each table that says “Number of movies”, followed by a count of the number of movies in the XML file for that table. Your XSLT code must use an XPath function to calculate this value-do not calculate the value manually.

Step 4 – Adding Hyperlinks to Movie Titles (15 points)

In each movie table, add a hyperlink to each movie title for movies containing a url element. (Recall that you were asked to omit the url element for three of the movies when you created the XML file.) If no url exists for a movie, just display the title with no hyperlink. Create a template for the title field before you begin to make other changes.

Submission (5 Points)

Submit a single zip file named FirstnameLastnameA2.zip containing both of your files with no other files or folders. I will test using Internet Explorer so make sure it will work in that browser. When I open the zip file I should see the following files:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
  1. movies.xml
  2. movies.xslt.

There should be no other files or folders.

Still stressed with your coursework?
Get quality coursework help from an expert!