There is a program from apache called FOP that will generate PDF, etc. from XSL.
You can run this from the command-line as:
fop.sh -xml lecture.xml -xsl slides2fo.xsl -pdf lecture.pdf
or to generate from XSL directly:
fop.sh lecture.fo lecture.pdf
The result is (fo) (pdf) as produced by slides2fo.xsl .