From 15b8d76c83d0577405ba65971b52e6e4753ecb34 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Thu, 1 Sep 2016 15:09:29 +0200 Subject: [PATCH] Providing section @id values --- ws/Docbook/Extensions/Xsl/docbook2slides.xsl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ws/Docbook/Extensions/Xsl/docbook2slides.xsl b/ws/Docbook/Extensions/Xsl/docbook2slides.xsl index 1f846f293..5cad426c7 100644 --- a/ws/Docbook/Extensions/Xsl/docbook2slides.xsl +++ b/ws/Docbook/Extensions/Xsl/docbook2slides.xsl @@ -28,7 +28,7 @@ <div class="reveal"> <!-- Wrap all slides in a single "slides" class --> <div class="slides"> - <section> + <section id="{@xml:id}"> <!-- <xsl:apply-templates select="*[not(name(.)='db:section')]"/> --> @@ -47,6 +47,8 @@ progress: true, history: true, center: true, + width: '80%', + height: '80%', transition: 'slide', // none/fade/slide/convex/concave/zoom @@ -67,12 +69,12 @@ </xsl:template> <xsl:template match="d:section"> - <section> + <section id="{@xml:id}"> <xsl:apply-templates/> </section> </xsl:template> - <xsl:template match="d:section/d:title"> + <xsl:template match="d:chapter/d:title|d:section/d:title"> <h3> <xsl:value-of select="."/> </h3> -- GitLab