CSc 8711, Spring 2009
Assignment 4 (XSLT Problems)
Due: 27 March, 2009 (Friday)
Solve the following problems from the Oracle 10g Primer textbook:
- 9.5
-
Consider the bibliographic XML document of Example 8.3.1. Write XSLT programs to produce three Web pages for browsing the contents of the document. The first Web page should list the Journal names, each of them hyperlinked to the second Web page. The second Web page should list all the volumes for the given journal, each of them hyperlinked to the third Web page. The third Web page should list all the papers in the given volume. The papers should be separated by the different numbers within the volume. All three Web pages should be well formatted and should have appropriate headings. Java servlets may be used to invoke the XSLT programs.
- 9.6
-
Consider the geography XML document of Example 8.3.2. Write XSLT programs to display the list of states and their capital cities in an HTML page in tabular format. The state name should be hyperlinked to a detail Web page for that state displaying all information for the state. Java servlets may be used to invoke the XSLT programs.
- 9.7
-
Consider the XML document described in Problem 8.7 related to the mail order database. Write an XSLT program that takes as input an order number and produces a well formatted invoice as a Web page for the given order. The invoice should include customer details, employee information, as well as order details for the order. Java servlets may be used to invoke the XSLT program.
- 9.8
-
Consider the XML document described in Problem 8.8 related to the movies database. Write XSLT programs to display a Web page to browse all movies based on the first letter of the movie title. The top of the Web page should have the letters of the alphabet A through Z hyperlinked and by default all movies that start with the letter A should be displayed below. On clicking the hyperlink for a letter the lower part of the screen should display movies whose titles begin with that letter. Each of the movies in the listing should display the full title with the year in parentheses. They should also be sorted by year in descending order. The title of the movie should be hyperlinked and upon clicking the hyperlink should take the browser to a separate page with all details of the individual movie well formatted.
- 9.9
-
Consider the XML document described in Problem 8.10 containing bulletin board data. Write an XSLT program to display the contents of the bulletin board along with form elements to post new messages as shown in Figure 9.1 in the form of a Web page. The Post Message hyperlink should point to the start of the post a message block. The messages themselves are hyperlinked to a message detail URL which need not be programmed.
Data Files
- bib.xml
- geo.xml
- mail.xml
- movies.xml
- postings.xml