- Fixed the way that titling for calendar documents is handled so that it
works correctly in both standalone and embedded mode.
1 parent cc0458e commit 0d07c0cff97b0de42e3e65d6b408fbe4927b2b5e
nstanger authored on 15 Aug 2012
Showing 1 changed file
View
4
xml2xslt.xsl
</xsl-out:attribute>
</xsl-out:element>
<title>
<xsl-out:choose>
<xsl-out:when test="calendar">
<xsl-out:when test="@class = '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" />
</title>
</head>
<body>
<xsl-out:choose>
<xsl-out:when test="calendar" />
<xsl-out:when test="@class = 'calendar'" />
<xsl-out:otherwise>
<xsl-out:apply-templates select="title" mode="title" />
<xsl-out:apply-templates select="due-date" mode="title" />
</xsl-out:otherwise>