diff --git a/xml2xslt.xsl b/xml2xslt.xsl index 66b4636..2399762 100755 --- a/xml2xslt.xsl +++ b/xml2xslt.xsl @@ -44,12 +44,37 @@ INFO - + no . + + + + + Summer School + + + Semester One + + + Semester Two + + + Full Year + + + + Unrecognised period code " + + ". + + + + + @@ -133,7 +158,7 @@ @@ -258,7 +283,7 @@ _ - + DNS_ /db_styles.css @@ -279,12 +304,29 @@ - <xsl-out:apply-templates select="title" mode="preamble" /> + <xsl-out:choose> + <xsl-out:when test="calendar"> + <xsl-out:value-of select="$subject-code" /> + <xsl-out:value-of select="$paper-number" /> + <xsl-out:text> Teaching Calendar, </xsl-out:text> + <xsl-out:value-of select="$period-string" /> + <xsl-out:text>, </xsl-out:text> + <xsl-out:value-of select="$paper-year" /> + </xsl-out:when> + <xsl-out:otherwise> + <xsl-out:apply-templates select="title" mode="preamble" /> + </xsl-out:otherwise> + </xsl-out:choose> - - + + + + + + +