Merge branch 'master' of https://github.com/Otago-InfoSci-Database/XML
commit 314dd6c22faeec165324296986a1555213a99760
2 parents 5a315dc + e7947de
Nigel Stanger authored on 5 Jul 2015
Showing 2 changed files
View
19
modules/titling.xml
</p>
</common>
</template>
<!-- Document date (doesn't appear in normal body). -->
<template name="document-date" match="document/date" />
<!--
Document date at the start of an (X)HTML document. This is irrelevant for (Xe)LaTeX, as the (title) date is generated by a \maketitle in the generated LaTeX markup (see xml2xslt.xsl).
-->
<template name="document-date-title" match="document/date" mode="title">
<common formats="/html/xhtml/">
<p><xsl:apply-templates /></p>
</common>
</template>
<!--
Assignment due date at the start of an (X)HTML document. This is irrelevant for (Xe)LaTeX, as the (title) due date is generated by a \maketitle in the generated LaTeX markup (see xml2xslt.xsl). This only makes sense for assignments.
-->
<xsl:apply-templates />
</common>
</template>
 
<!-- Empty templates to catch any un-moded attempts to process the due date or title. -->
<!-- Empty templates to catch any un-moded attempts to process the date, due date or title. -->
<template name="document-due-date-unmoded" match="document/due-date" />
<template name="document-title-unmoded" match="document/title" />
<template name="document-date-unmoded" match="document/date" />
 
<!--
Chapter titles for tutorials and labs, which are essentially chapters when included in a course book, but are marked up as documents in themselves.
View
1
■■■■
xml2xslt.xsl
<xsl-out:choose>
<xsl-out:when test="@class = 'calendar'" />
<xsl-out:otherwise>
<xsl-out:apply-templates select="title" mode="title" />
<xsl-out:apply-templates select="date" mode="title" />
<xsl-out:apply-templates select="due-date" mode="title" />
</xsl-out:otherwise>
</xsl-out:choose>
<xsl-out:apply-templates />