XSLT Problem set
Due Wednesday, May 2.
example considered in class. You need to modify the example as follows:
- Display all the authors of each book. The names of the authors
must be separated by commas, there should not be a comma after the
last author. Hint: this can be accomplished using XPath selection and
a couple of XSLT elements in 4 lines of code or so.
You might want to use a function ("template") for this task since you
will need it for the last part anyway.
- Display the titles of books in the category 'WEB' in italics.
Also try to use a function.
- Change the page so that it displays all books except those in the
CHILDREN category. Hint: use !=
- Add another table that displays only books in the CHILDREN
category, use the same formatting as for the main table. Avoid code
duplication by moving formatting of authors, title, etc. into
The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.