Assignment 2

A. XSLT Stylesheet (50%).

Create an XSLT stylesheet that can execute the XML-transformation to an HTML-result that has been assigned to you. Make sure the result-HTML file will be linked to, and therefore formatted accordingly to, the CSS stylesheet used on the Bookandbyte-website, which can be found at <http://bookandbyte.org/style2007.css>. Name your file [your surname]-DMT_Assignment2a.xsl, in accordance with the BDMS Style Sheet. Your XSL-file can be awarded a maximum of 10 points.


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.

  1. Which XPath expressions have you used in the stylesheet that you have written for part A of this assignment? Name at least three, and briefly explain their function. [maximum word count (mwc): 150]
  2. To publish a TEI XML file on the web, it is usually transformed into HTML, with XSLT. An alternative publication scenario could be to encode the text directly in HTML and style it with CSS, without having to create a an XSLT to transform the XML. What advantage(s) and disadvantage(s) adhere to both scenarios? [mwc: 300]
  3. Mendeley and Zotero are two reference management applications, with which users can easily display sources in various citation styles, based on stored metadata. Below you can find three examples of this: in the first example (i), the article is cited according to the style of the American Psychological Association (APA); in the second example (ii), the citation follows the rules of the Modern Language Association (MLA); the third example (iii) adheres to the BDMS Stylesheet.
    1. Schreibman, S., Gueguen, G., & Roper J., (2008). Cross-collection Searching: A Pandora’s Box or the Holy Grail’, Literary and Linguistics Computing, 23 (1), 13-25.
    2. Schreibman, S., et al. “Cross-collection Searching: A Pandora’s Box or the Holy Grail.” Literary and Linguistics Computing 23.1 (2008): 13-25.
    3. S. Schreibman, G. Gueguen, and J. Roper,’Cross-collection Searching: A Pandora’s Box or the Holy Grail’, Literary and Linguistics Computing 23.1 (2008), pp. 13-25.

    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]

  4. Explain the difference between ‘statements’ and ‘flow control components’ in programming languages. In which category would you place <xsl:for-each>?
  5. According to you and/or based on your own experience, which aspect(s) of XSLT is/are most difficult for new learners of the language? Illustrate your argumentation with material from the XSLT Exercises[maximum word count: 200]