Author: sjur
Date: Tue Sep 13 08:50:07 2016
New Revision: 1760495

URL: http://svn.apache.org/viewvc?rev=1760495&view=rev
Log:
Retain width and height attributes of the img element when converting html to 
forrest doc format.

Modified:
    forrest/trunk/main/webapp/resources/stylesheets/html-to-document.xsl

Modified: forrest/trunk/main/webapp/resources/stylesheets/html-to-document.xsl
URL: 
http://svn.apache.org/viewvc/forrest/trunk/main/webapp/resources/stylesheets/html-to-document.xsl?rev=1760495&r1=1760494&r2=1760495&view=diff
==============================================================================
--- forrest/trunk/main/webapp/resources/stylesheets/html-to-document.xsl 
(original)
+++ forrest/trunk/main/webapp/resources/stylesheets/html-to-document.xsl Tue 
Sep 13 08:50:07 2016
@@ -151,10 +151,10 @@
   <xsl:template match="img">
     <xsl:choose>
       <xsl:when test="name(..)='section'">
-        <figure alt="{@alt}" src= "{@src}"/>
+        <figure alt="{@alt}" src="{@src}" height="{@height}" width="{@width}"/>
       </xsl:when>
       <xsl:otherwise>
-        <img alt="{@alt}" src= "{@src}"/>
+        <img alt="{@alt}" src="{@src}" height="{@height}" width="{@width}"/>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>