diff --git a/xml2xslt.xsl b/xml2xslt.xsl
index 68ae32d..bf656f7 100755
--- a/xml2xslt.xsl
+++ b/xml2xslt.xsl
@@ -1,421 +1,455 @@
-
-
-
-
-
-
-
-
-
- html
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- INFO
-
-
- INFO
-
-
-
-
- .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- yes
-
-
-\usepackage{mathpazo} % mathpple is deprecated
-\usepackage[T1]{fontenc}
-\usepackage{textcomp}
-
-% Safer to specify the hyperref options directly rather than relying on
-% the default hyperref.cfg, as XeLaTeX seems to ignore it :(.
-\usepackage[ pdftex,%
- pdfpagemode=UseNone,%
- colorlinks,%
- urlcolor=blue,%
- linkcolor=red,%
- breaklinks ]{hyperref}
-
-\renewcommand{\ttdefault}{blg}
-
-
-
-
-
-
-
-
-
- yes
-
-
-\usepackage{fontspec}
-\usepackage{xunicode}
-\usepackage{xltxtra}
-\usepackage{textcomp} % ???
-
-% Safer to specify the hyperref options directly rather than relying on
-% the default hyperref.cfg, as XeLaTeX seems to ignore it :(.
-\usepackage[ xetex,%
- pdfpagemode=UseNone,%
- colorlinks,%
- urlcolor=blue,%
- linkcolor=red,%
- breaklinks ]{hyperref}
-
-\defaultfontfeatures{Mapping=tex-text}
-\setmainfont{TeX Gyre Pagella}
-\setmonofont[Scale=MatchLowercase]{Letter Gothic 12 Pitch}
-
-
-
-
-
-
- Sorry, unknown format:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- png
-
-
-
-
-
- THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT!
-
-
-
-
- Stylesheet
-
-
- http://info-nts-12.otago.ac.nz/
-
-
- /db_styles.css
-
-
- text/css
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Notes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- pdf
-
-
-
-
-
-
-
-% THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT!
-
-\documentclass[12pt,a4paper]{article}
-
-\usepackage[margin=1in]{geometry}
-\usepackage{multirow}
-\usepackage{graphicx}
-\usepackage{verbatim} % needed for \verbatiminput
-\usepackage{relalg} % needed for join operators
-\usepackage{pifont}
-
-
-
-
-
-\newenvironment{answer}{\par\vspace{0.5em}\itshape}{\normalfont\vspace{1.5em}}
-
-
-
-
-
-\begin{document}
- \maketitle
-
-
-
- \vfill
- {\scriptsize \hfill \verb++}
-\end{document}
-
-
-
-
- \tutorial{}
-
-
-
-
- \vfill {\scriptsize \hfill \verb++}
-
-
- \lab{}
-
-
-
-
- \vfill {\scriptsize \hfill \verb++}
-
-
-
- \general{}
-
-
-
-
-
-
-
-
-
-
-
- Sorry, unknown format:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INFO
+
+
+ INFO
+
+
+
+
+ .
+
+
+
+
+
+
+
+
+
+
+ iso-8859-1
+
+
+
+ utf-8
+
+
+
+
+ Sorry, unknown format:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ yes
+
+
+\usepackage{mathpazo} % mathpple is deprecated
+\usepackage[T1]{fontenc}
+\usepackage{textcomp}
+
+% Safer to specify the hyperref options directly rather than relying on
+% the default hyperref.cfg, as XeLaTeX seems to ignore it :(.
+\usepackage[ pdftex,%
+ pdfpagemode=UseNone,%
+ colorlinks,%
+ urlcolor=blue,%
+ linkcolor=red,%
+ breaklinks ]{hyperref}
+
+\renewcommand{\ttdefault}{blg}
+
+
+
+
+
+
+
+
+
+ yes
+
+
+\usepackage{fontspec}
+\usepackage{xunicode}
+\usepackage{xltxtra}
+\usepackage{textcomp} % ???
+
+% Safer to specify the hyperref options directly rather than relying on
+% the default hyperref.cfg, as XeLaTeX seems to ignore it :(.
+\usepackage[ xetex,%
+ pdfpagemode=UseNone,%
+ colorlinks,%
+ urlcolor=blue,%
+ linkcolor=red,%
+ breaklinks ]{hyperref}
+
+\defaultfontfeatures{Mapping=tex-text}
+\setmainfont{TeX Gyre Pagella}
+\setmonofont[Scale=MatchLowercase]{Letter Gothic 12 Pitch}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ png
+
+
+
+
+
+ THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT!
+
+
+
+
+ Stylesheet
+
+
+ http://info-nts-12.otago.ac.nz/
+
+
+ /db_styles.css
+
+
+ text/css
+
+
+
+
+ Content-type
+
+
+ text/html;charset=
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Notes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pdf
+
+
+
+
+
+
+
+% THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT!
+
+\documentclass[12pt,a4paper]{article}
+
+\usepackage[margin=1in]{geometry}
+\usepackage{multirow}
+\usepackage{graphicx}
+\usepackage{verbatim} % needed for \verbatiminput
+\usepackage{relalg} % needed for join operators
+\usepackage{pifont}
+
+
+
+
+
+\newenvironment{answer}{\par\vspace{0.5em}\itshape}{\normalfont\vspace{1.5em}}
+
+
+
+
+
+\begin{document}
+ \maketitle
+
+
+
+ \vfill
+ {\scriptsize \hfill \verb++}
+\end{document}
+
+
+
+
+ \tutorial{}
+
+
+
+
+ \vfill {\scriptsize \hfill \verb++}
+
+
+ \lab{}
+
+
+
+
+ \vfill {\scriptsize \hfill \verb++}
+
+
+
+ \general{}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+