From e4d127022707e032f903f69a53e0a2aace6c9ab6 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Thu, 1 Sep 2016 10:04:09 +0200 Subject: [PATCH] Allowing chapter container. Center pages for mobile access --- ws/Docbook/Extensions/Xsl/docbook2slides.xsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ws/Docbook/Extensions/Xsl/docbook2slides.xsl b/ws/Docbook/Extensions/Xsl/docbook2slides.xsl index 5a338e9f6..1f846f293 100644 --- a/ws/Docbook/Extensions/Xsl/docbook2slides.xsl +++ b/ws/Docbook/Extensions/Xsl/docbook2slides.xsl @@ -5,10 +5,10 @@ <xsl:import href="/usr/share/xmlmind/addon/config/docbook5/xsl/html/docbook.xsl" /> <xsl:template match="/"> - <xsl:apply-templates select="//d:section[d:annotation[@role='slide']]" mode='entry'/> + <xsl:apply-templates select="//d:chapter[d:annotation[@role='slide']] | //d:section[d:annotation[@role='slide']]" mode='entry'/> </xsl:template> - <xsl:template match="d:section" mode='entry'> + <xsl:template match="d:chapter | d:section" mode='entry'> <xsl:result-document method="xhtml" encoding="utf-8" href="Slides/{@xml:id}.html" indent="no"> <html lang="en"> <head> @@ -46,7 +46,7 @@ controls: true, progress: true, history: true, - center: false, + center: true, transition: 'slide', // none/fade/slide/convex/concave/zoom -- GitLab