• Changed question set answers to be processed similar to tutorials and labs. (Doesn’t seem to have any effect, though?)
1 parent 8733b0d commit 6bc4e402ec6580cab5c55bd6b2e3d86d685e46ae
Nigel Stanger authored on 22 Jul 2016
Showing 1 changed file
View
8
modules/titling.xml
<common formats="/html/xhtml/">
<xsl:if test="index-of(('tutorial', 'laboratory', 'assignment', 'project', 'question set'), /document/@class)">
<xsl:if test="$showanswers='yes'">
<xsl:choose>
<xsl:when test="index-of(('tutorial', 'laboratory'), /document/@class)">
<xsl:when test="index-of(('tutorial', 'laboratory', 'question set'), /document/@class)">
<xsl:text>Selected Answers for </xsl:text>
</xsl:when>
<xsl:when test="index-of(('assignment', 'project', 'question set'), /document/@class)">
<xsl:when test="index-of(('assignment', 'project'), /document/@class)">
<xsl:text>Sample Solution for </xsl:text>
</xsl:when>
</xsl:choose>
</xsl:if>
<h1>
<xsl:if test="index-of(('tutorial', 'laboratory', 'assignment', 'project', 'question set'), /document/@class)">
<xsl:if test="$showanswers='yes'">
<xsl:choose>
<xsl:when test="index-of(('tutorial', 'laboratory'), /document/@class)">
<xsl:when test="index-of(('tutorial', 'laboratory', 'question set'), /document/@class)">
<xsl:text>Selected Answers for </xsl:text>
</xsl:when>
<xsl:when test="index-of(('assignment', 'project', 'question set'), /document/@class)">
<xsl:when test="index-of(('assignment', 'project'), /document/@class)">
<xsl:text>Sample Solution for </xsl:text>
</xsl:when>
</xsl:choose>
</xsl:if>