<xsl:template match="book|article" mode="docinfo">
<!-- Apply default settings -->
<xsl:apply-imports/>
- <!--
- <xsl:text>\input{</xsl:text>po4a/hyphenation.<xsl:value-of select="$lingua"/><xsl:text>.tex}</xsl:text>
- -->
</xsl:template>
<xsl:param name="hyphenate">false</xsl:param>
<xsl:param name="generate.toc">book toc title</xsl:param>
+ <!-- Require dblatex 0.3.7 or newer -->
+ <xsl:param name="figure.title.top">0</xsl:param>
+ <xsl:param name="figure.anchor.top">1</xsl:param>
+
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
- <l:l10n language="en">
- <l:context name="title-numbered">
- <l:template name="chapter" text="%n. %t"/>
- </l:context>
+ <!-- Drop the number in front of chapters -->
+ <l:context name="title-numbered">
+ <l:template name="chapter" text="%t"/>
+ </l:context>
+
+ <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:l10n>
</l:i18n>
+ <!-- Make preface show up in toc for dblatex -->
+ <xsl:param name="preface.tocdepth">1</xsl:param>
+
</xsl:stylesheet>