Description: FOP throws NPE if a foot-note is declared within a static-region
Author: Mathieu Malaterre <malat@debian.org>
Origin: vendor, https://lists.oasis-open.org/archives/docbook-apps/201209/msg00062.html
Bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=53817
Bug-Debian: http://bugs.debian.org/686516
Forwarded: not-needed

--- docbook-slides-3.4.0.orig/xsl/fo/plain.xsl
+++ docbook-slides-3.4.0/xsl/fo/plain.xsl
@@ -226,7 +226,7 @@
               font-weight="bold"
               text-align="center"
               font-family="{$slide.title.font.family}">
-      <xsl:apply-templates select="title" mode="titlepage.mode"/>
+      <xsl:apply-templates select="title" mode="title.markup"/>
     </fo:block>
   </fo:static-content>
 
@@ -237,7 +237,7 @@
               font-weight="bold"
               text-align="center"
               font-family="{$slide.title.font.family}">
-      <xsl:apply-templates select="title" mode="titlepage.mode"/>
+      <xsl:apply-templates select="title" mode="title.markup"/>
       <xsl:text> </xsl:text>
       <xsl:call-template name="gentext">
         <xsl:with-param name="key" select="'Continued'"/>
