Lab #5 - XSLT Processing

CS 183 - Hypermedia and the Web

The goal of this laboratory assignment is to exercise knowledge of XPath path expressions and XSLT stylesheets by creating a functional stylesheet. So long as you have followed the setup for lab #4, no additional setup is necessary for this lab assignment.

The assignment is a repeat of the DOM parsing assignment from lab #1. That is:

1. Using use this XML file as input, create an XSLT stylesheet that, after execution, creates an HTML file that outputs the following information:

These can be found in the XML elements and attributes:

The output should have the following attributes. Where the output format is unspecified, it can be in any reasonable format.

It should be much, much easier to do this assignment than the original DOM parsing assignment.

Note: To manually operate the Xalan XSLT processor, use the following command at the unix command prompt (all on one line):

java org.apache.xalan.xslt.Process -in {input XML file} -xsl {your XSLT file} -out {name of your output HTML file}

For example:

java org.apache.xalan.xslt.Process -in $CS183_LOCKER/draft-ietf-webdav-ordering-protocol-07.xml -xsl ejw_lab5.xslt -out ejw_lab5.html

Note: The input file for the lab is located at:

$CS183_LOCKER/draft-ietf-webdav-ordering-protocol-07.xml

/afs/cats.ucsc.edu/class/cmps183-jw.s03/draft-ietf-webdav-ordering-protocol-07.xml