From 58e021395ce21b6182d993f8fc910ba124b396fa Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Fri, 4 Aug 2017 22:45:04 +0200 Subject: [PATCH] Separate sizing webhelp/slides --- ws/Docbook/Preprocess/Xsl/docbook2slide.xsl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ws/Docbook/Preprocess/Xsl/docbook2slide.xsl b/ws/Docbook/Preprocess/Xsl/docbook2slide.xsl index cfdf32178..ea418ccad 100644 --- a/ws/Docbook/Preprocess/Xsl/docbook2slide.xsl +++ b/ws/Docbook/Preprocess/Xsl/docbook2slide.xsl @@ -26,4 +26,15 @@ </xsl:template> + <xsl:template match="db:figure/db:mediaobject/db:imageobject/db:imagedata[ends-with(@fileref, '.svg')]"> + + <xsl:copy> + <xsl:attribute name="scale"> + <xsl:text>150</xsl:text> + </xsl:attribute> + <xsl:apply-templates select="@*[not(name(.) = 'scale')] | node()"/> + </xsl:copy> + + </xsl:template> + </xsl:stylesheet> -- GitLab