title: "img" must be terminated by the matching end-tag
body: <p>When parsing some an XSL XML file using docx4j, I keep receiving this error: </p>
  
  <blockquote>
    <p>'The element type "img" must be terminated by the matching end-tag <code>"&lt;/img&gt;"</code>. Exception Error in Docx4JException'</p>
  </blockquote>
  
  <p>I have tried all sorts of combinations to solve the issue but nothing seems to work apart from putting some text in between the <code>img</code> tags. I don't want the text to display. Is there anything else that can be done?</p>
  
  <p>This is the piece of xsl that is causing the error: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:prettyprint="http://xml.apache.org/xslt" xmlns:xalan="http://xml.apache.org/xalan" version="1.0"&gt;
     &lt;xsl:output method="html" /&gt;
     &lt;!-- Main entry template --&gt;
     &lt;xsl:template match="Email"&gt;
        &lt;html&gt;
           &lt;body&gt;
              &lt;img width="100" height="100" src="http://thumbs.dreamstime.com/x/sun-logo-6350903.jpg" border="0" class="MyImage" /&gt;
              &lt;div style="font-family:Verdana, Arial; font-size:9.5pt; font-weight:normal"&gt;
                 &lt;xsl:variable name="PTPTotalAmt" select="Issue_PTPTotalAmount_C" /&gt;
                 &lt;xsl:variable name="LetterDate" select="LetterDate" /&gt;
                 &lt;xsl:variable name="LtrDate" select="substring($LetterDate, 1, 11)" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:value-of select="Contact_Title_R" /&gt;
                 &lt;xsl:text /&gt;
                 &lt;xsl:value-of select="Contact_LastName_X" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:value-of select="Contact_DispAddrLine1_X" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:value-of select="Contact_DispAddrLine3_X" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:value-of select="Contact_DispAddrLine4_X" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:value-of select="Contact_DispAddrLine5_X" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:value-of select="Contact_DispAddrPostCode_X" /&gt;
                 &lt;br&gt;
                    &lt;xsl:text /&gt;
                 &lt;/br&gt;
                 &lt;xsl:text /&gt;
                 &lt;xsl:text /&gt;
                 &lt;xsl:value-of select="$LtrDate" /&gt;
              &lt;/div&gt;
              &lt;br&gt;
                 &lt;xsl:text /&gt;
              &lt;/br&gt;
              &lt;br&gt;
                 &lt;xsl:text /&gt;
              &lt;/br&gt;
              &lt;br&gt;
                 &lt;xsl:text /&gt;
              &lt;/br&gt;
              &lt;br&gt;
                 &lt;xsl:text /&gt;
              &lt;/br&gt;
              &lt;div style="font-family:Verdana, Arial; font-size:8.5pt; font-weight:normal"&gt;
                 &lt;br&gt;
                    &lt;xsl:text&gt;Address Here&lt;/xsl:text&gt;
                 &lt;/br&gt;
              &lt;/div&gt;
           &lt;/body&gt;
        &lt;/html&gt;
     &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>