Question: Write the XSL program to show the following output for Book.xml ( Created in task 1 ) . [ O 4 ] [ 8 Marks

Write the XSL program to show the following output for Book.xml (Created in task 1).
[O4][8 Marks]
Midterm Exam Timetable
Course_Code Course_Name Exam_Day Teacher_Name Room
COMP324 Xml Programming Tuesday
Date =26 March 2024 Dr. Sohail
Dept= IT402
COMP106 Visual Programming Monday
Date =1 April 2024 Dr. Baidaa
Dept= Business Lab 1
IS450 Business Expert System Wednesday
Date =3 April 2024 Mrs. Ghalia
Dept= IT202
COMP112 Programming 1 Sunday
Date =7 April 2024 Dr. Roy
Dept= Business Lab 4
TASK 2:
Write the XPath expressions to compute the following: [O5][1*7=7 Marks]
1. Select all the Course Name.
2. Select the Course_Code of first course.
3. Select all the Exam_Day elements that have an attribute value 3 April 2024.
4. Select all the Course_Name elements where Room is Lab 1.
5. Selects all the course code elements of the course element of the exam element AND all the room elements in the document.
6. Selects the first two course elements that are children of the exam element.
7. Selects all the teacher name elements that have an attribute with a value of business.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!