- Added a test to DueDate to check that a due date has actually been specified.
1 parent 4bf6af1 commit 9476ec331fc4344e29d22664b2916862b151f23b
nstanger authored on 27 Apr 2012
Showing 1 changed file
View
6
modules/global-elements.xml
@style: Additional formatting to apply to the due date when displayed. It should be a delimited list (it doesn't really matter what the delimiter is) containing one or more of the following values: "bold", "italic", "underline". Anything unrecognised is ignored.
-->
<template name="DueDate" match="DueDate">
<common>
<!-- There must be a due-date element for this to work! -->
<xsl:if test="not( /document/due-date )">
<xsl:message terminate="yes">The due date for this assignment has not been specified (use /document/due-date).</xsl:message>
</xsl:if>
</common>
<common formats="/latex/xelatex/">
<xsl:if test="contains( @style, 'bold' )">
<xsl:text>\textbf{</xsl:text>
</xsl:if>