A. XSLT Stylesheet (50%).
Choose one of the scenarios below and write a stylesheet which can display or calculate all the information that is mentioned. More information on the use of APIs can be found here. Name your file [your surname]-DMT_Assignment2a.xsl, in accordance with the BDMS Style Sheet. Submit both the XML file and your XSL file. This part of the assignment can be awarded a maximum of 10 points.
The GoodReads Api enables you to download data about a specific book title, identified by an ISBN. To obtain all the data that is available for the title with ISBN 9780385537148, for instance, you can use the following query:
Using the GoodReads API, download an XML file that contains data about a specific book. The GoodReads API can return bibliographic data, and data about books, which, according to readers, are related to this title. In the section that is encoded using the element <popular_shelves>, count both the total number of shelves the book is added to, and the number of shelves that have a count of 50 or higher (if applicable). In addition, create a bulleted list which shows all books this title is related. Only show those titles which have a rating of 4 or higher. Show the author name, the title in italics and the year of publication. This list must be sorted on the basis of the rating, in a descending order.
You can use the New York Times Books API enables to get data about books reviews and bestseller lists.
The bestellers which were in the "combined print and e-book fiction" list from 1 January 2015 can be found, for instance, using the following query:
The New York Times also publishes other types of beststellers lists. Information about the various categories can be found using the following API query:
http://api.nytimes.com/svc/books/v3/lists/names.xml?api-key=cda705355dc731a3b819ac80ce02578b:15:72378286 In the lists API, you need to use the name of the lists as given in the element >list_name_encoded<
Download a list of bestsellers from the New York Times, using the NYT’s books API. Write a stylesheet that can count the total number of books in the list, and the total number of books that have been on the list for longer than 10 weeks (if applicable; change this number if necessary. Note that this information can be found in the element <weeks_on_list>). Also create a bulleted list which shows all the books which are new on the list (i.e. where <weeks_on_list> is zero). For these new titles, display the title in italics, the author name, and, if available, a description. The list must be sorted alphabetically by title.
Download one of the following TEI files:
B. Questions (50%).
The questions test your understanding of the concepts and the techniques that have been explained in the Digital Media Technology lectures and seminars on XSLT, and/or before. Read all the questions very carefully and motivate your answers as fully as possible. The answers to these questions need to be given in a separate document. Do not forget to write your name in the document that you submit, and format the file in accordance with the BDMS Style Sheet.
The five questions can be awarded 2 points each.
Explain how XML and XSLT techniques can be used on these reference management applications to implement such a functionality. Which XSLT elements would you need to make sure any citation style can be precisely followed? Tip: Note that not all sources have multiple authors, or pagination. [maximum word count: 200]