Question
Question: COP4814 Assignment 2 (60 Points in total) Step 1 - Selectively Displaying Movies (20 points) Continue the XSLT you wrote for Assignment 1 by
Question: COP4814 Assignment 2 (60 Points in total)
Step 1 - Selectively Displaying Movies (20 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 if
necessary.
Step 2 - Displaying a List of Directors for each table (10 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 (10 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 uri
element. (Recall that you were asked to omit the uri element for three of the movies
when you created the XML file.) If no uri 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.
Submit a single zip file named FirstnameLastnameA2.zip containing both of your files with no
other files or folders. I will test using Interent Explorer so make sure it will work in that browser.
When I open the zip file I should see the following files:
1. movies.xml
2. movies.xslt.
There should be no other files or folders even if you are a Mac User. (5 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started