+ <!-- Attributions should be italicized, right-aligned -->
+ <xsl:template match="attribution">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\begin{flushright}
+ \textit{ </xsl:text>
+ <xsl:copy-of select="$content"/>
+ <xsl:text>}
+ \end{flushright}</xsl:text>
+ </xsl:template>
+
+ <!-- An attribution's citetitle should be rendered after a line
+ break -->
+ <xsl:template match="citetitle">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\\ \quad \hfill </xsl:text>
+ <xsl:copy-of select="$content"/>
+ </xsl:template>
+
+ <!-- Bibliography and acknowledgements are formatted as numberless
+ chapters — And the easiest way to achieve it was abusing the
+ "Appendix" definition. -->
+ <xsl:template match="appendix">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:param name="title">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\chapter*{</xsl:text>
+ <xsl:copy-of select="title"/>
+ <xsl:text>}</xsl:text>
+ <xsl:text>\addcontentsline{toc}{chapter}{</xsl:text>
+ <xsl:copy-of select="title"/>
+ <xsl:text>}</xsl:text>
+ <xsl:copy-of select="$content"/>
+ </xsl:template>
+
+ <!-- Place title verso page behind the title page the hard way: put
+ colophon content in a file loaded by \maketitle -->
+ <xsl:template match="colophon">
+ <xsl:variable name="titlepage.verso">
+ <xsl:text>\begin{colophon} </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\end{colophon} </xsl:text>
+ </xsl:variable>
+ <xsl:call-template name="write.text.chunk">
+ <!-- The filename must end with 'input.rtex' to be parsed by dblatex -->
+ <xsl:with-param name="filename">
+ <xsl:text>titlepg.input.rtex</xsl:text>
+ </xsl:with-param>
+ <xsl:with-param name="method" select="'text'"/>
+ <xsl:with-param name="content">
+ <xsl:value-of select="$titlepage.verso"/>
+ </xsl:with-param>
+ <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:param name="local.l10n.xml" select="document('')"/>
+ <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+ <l:l10n language="nb">
+ <!-- Fix bugs in default nb locale -->
+ <l:dingbat key="startquote" text="«"/>
+ <l:dingbat key="endquote" text="»"/>
+ <l:dingbat key="nestedstartquote" text="‘"/>
+ <l:dingbat key="nestedendquote" text="’"/>
+ <l:gentext key="Copyright" text=""/>
+ </l:l10n>
+ <l:l10n language="nn">
+ <!-- Fix bugs in default nn locale -->
+ <l:dingbat key="startquote" text="«"/>
+ <l:dingbat key="endquote" text="»"/>
+ <l:dingbat key="nestedstartquote" text="‘"/>
+ <l:dingbat key="nestedendquote" text="’"/>
+ <l:gentext key="Copyright" text=""/>
+ </l:l10n>
+ </l:i18n>
+