Question: Input file code provided below. Output/Result students_lab5.xml 1000001 Jones Ben 08/25/2006 CS:BS 1000002 Chong Mary May 5, 2013 IT:BS 1000003 Ramirez Jose 01/16/2008 IT:BA 1000004
Input file code provided below.

Output/Result

students_lab5.xml
COP 4814 Lab 5 (20 Points in total) Using XPath Templates to Display Computer Science Majors (18 points) Create an XSLT file named lab5.xslt that reads an XML file containing student records and generates HTML output. Create an XSL template named student, and then create a separate XSL template for each field in the student element. That's a total of six times that you will use the statement The input file is in on my faculty website called students_lab5.xml. Copy it into your working folder. It contains data about students with different majors and catalog year values. Your XSLT output must display only students whose major is CS:BS. Also, for each student whose catalog year is greater than 2008, display a note in red, saying "Must complete the Senior Project course." Here is a sample of the expected output using this sample file: Note: Be very careful not to code directly to the values in this file. Your code should still work when reading an XML file that has the same basic structure, but different data values Computer Science Majors ID=1000001 Name = Jones. Ben Date-enrolled: 08/25/2006 Major = CS:BS, declared in 2006 Note that the program will be tested in Internet Explorer, Make sure that if you right click on the xml file you should be able to open it in Internet Explorer using your xsit file. If it does not work, it will not be able to earn any points and will not be graded further. D = 1000004 Name = Okamoto, Sally Date-enrolled: 08/25/2004 Major = CS:BS, declared in 2010 Must complete the Senior Project course. D = 1000005 Name = Kahane, Kawika Date-enrolled: 08/25/2008 Major = CS BS, declared in 2011 Must complete the Senior Project course
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
