- Added empty template to catch un-moded document/title in document body.
1 parent d8d131d commit 0163cf8e735b0d2a07c493199b34c9307d690953
nstanger authored on 23 Jul 2012
Showing 1 changed file
View
5
modules/titling.xml
<!--
Document title for an (X)HTML document. This template is irrelevant for LaTeX, as the document title is generated by a \maketitle in the generated LaTeX markup (see xml2xslt.xsl). The title element is applied explicitly by xml2xslt.xsl, so we add a mode to ensure that this it isn't caught up by the following general apply-templates. Otherwise, the title would appear twice in the document body.
-->
<template name="document-title" match="document/title" mode="title">
<template name="document-title-title" match="document/title" mode="title">
<!--
-->
<common formats="/html/xhtml/">
<xsl:apply-templates />
</common>
</template>
 
<!-- Empty template to catch any non-moded attempts to process the due date. -->
<!-- Empty template to catch any un-moded attempts to process the due date or title. -->
<template name="document-due-date" match="document/due-date" />
<template name="document-title" match="document/title" />
 
<!--
Chapter titles for tutorials and labs, which are essentially chapters when included in a course book, but are marked up as documents in themselves.