summaryrefslogtreecommitdiffstats
path: root/help3xsl/online_transform.xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-09-07 06:21:23 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-09-07 15:47:33 +0200
commit991e7f1f76d5ff87373cdf6e9f74897f36d8c393 (patch)
treefa2bfe4f9f25640c7602dcaa647e16ff4b6685b4 /help3xsl/online_transform.xsl
parentMute L10n in some regexp definitions and examples (diff)
downloadhelp-991e7f1f76d5ff87373cdf6e9f74897f36d8c393.tar.gz
help-991e7f1f76d5ff87373cdf6e9f74897f36d8c393.zip
Height and width are <img> attributes
Change-Id: Ia8084ff7029ddd06e450cbf03a7b1fb5efaa7dc7 Reviewed-on: https://gerrit.libreoffice.org/60136 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r--help3xsl/online_transform.xsl11
1 files changed, 4 insertions, 7 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 5e7859b974..70843b4c36 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -1078,18 +1078,15 @@
<xsl:variable name="alt"><xsl:value-of select="./alt"/></xsl:variable>
<xsl:variable name="width">
<xsl:if test="string-length(@width)!=0">
- <xsl:value-of select="'width:'"/>
<xsl:call-template name="convert2px"><xsl:with-param name="value" select="@width"/></xsl:call-template>
</xsl:if>
</xsl:variable>
<xsl:variable name="height">
<xsl:if test="string-length(@height)!=0">
- <xsl:value-of select="'height:'"/>
<xsl:call-template name="convert2px"><xsl:with-param name="value" select="@height"/></xsl:call-template>
</xsl:if>
</xsl:variable>
- <img src="{$src2}" alt="{$alt}" title="{$alt}">
- <xsl:attribute name="style"><xsl:value-of select="concat($width,'; ')"/><xsl:value-of select="concat($height,';')"/></xsl:attribute>
+ <img src="{$src2}" alt="{$alt}" title="{$alt}" height="{$height}" width="{$width}">
<xsl:if test="ancestor::tablecell">
<xsl:attribute name="class"><xsl:value-of select="'imageicon'"/></xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="concat(substring-before($src2,'.png'),'.svg')"/></xsl:attribute>
@@ -1205,13 +1202,13 @@
<xsl:param name="value"/>
<xsl:choose>
<xsl:when test="contains($value, 'cm')">
- <xsl:value-of select="concat(round(number(substring-before($value, 'cm')) * $dpcm),'px;')"/>
+ <xsl:value-of select="concat(round(number(substring-before($value, 'cm')) * $dpcm),'px')"/>
</xsl:when>
<xsl:when test="contains($value, 'mm')">
- <xsl:value-of select="concat(round(number(substring-before($value, 'mm')) * $dpmm),'px;')"/>
+ <xsl:value-of select="concat(round(number(substring-before($value, 'mm')) * $dpmm),'px')"/>
</xsl:when>
<xsl:when test="contains($value, 'in')">
- <xsl:value-of select="concat(round(number(substring-before($value, 'in')) * $dpi),'px;')"/>
+ <xsl:value-of select="concat(round(number(substring-before($value, 'in')) * $dpi),'px')"/>
</xsl:when>
<xsl:when test="contains($value, 'px')">
<xsl:value-of select="$value"/>