Description: Fix weird output in PDF meta-data
Author: Mathieu Malaterre <malat@debian.org>
Forwarded: https://lists.oasis-open.org/archives/docbook-apps/201208/msg00134.html

Index: docbook-slides-3.4.0/xsl/fo/plain-titlepage.xsl
===================================================================
--- docbook-slides-3.4.0.orig/xsl/fo/plain-titlepage.xsl	2012-09-10 09:49:54.587432840 +0200
+++ docbook-slides-3.4.0/xsl/fo/plain-titlepage.xsl	2012-09-10 09:52:30.387427216 +0200
@@ -165,4 +165,19 @@
 </fo:block>
 </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+<!--
+Without the following template, one gets a weird ???? in the pdf meta data output
+using fop. Fix this by replacing with something more appropriate.
+Ref:
+- https://lists.oasis-open.org/archives/docbook-apps/201106/msg00065.html
+- https://lists.oasis-open.org/archives/docbook-apps/201208/msg00134.html
+-->
+<xsl:template match="slides" mode="subtitle.markup">
+  <xsl:message>
+    <xsl:text>Request for slides/subtitle of unexpected element: </xsl:text>
+    <xsl:value-of select="local-name(.)"/>
+  </xsl:message>
+    <xsl:value-of select="slidesinfo/subtitle[1]"/>
+</xsl:template>
+
+</xsl:stylesheet>
