title: How to add space between two different emphasis tags
body: <p>I'm having a problem regarding spacing value between two different emphasis. The current output of the given xslt below is yet okay but there is no spacing between the two tags. Please help me with this as I dont know much about transformation. The detailed problem can be seen below.</p>
  
  <p>Here is the input XML:</p>
  
  <pre><code>&lt;caption&gt;
      &lt;content&gt;Box&lt;/content&gt;
        &lt;number&gt;1&lt;/number&gt;
        &lt;description&gt;
          &lt;em type="bold"&gt;Some text with scientic name: &lt;/em&gt;
      &lt;em type="bolditalic"&gt;fhadinistis&lt;/em&gt;
        &lt;/description&gt;
  &lt;/caption&gt;
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>&lt;cap&gt;
      &lt;text&gt;Box&lt;/text&gt;
      &lt;num&gt;1&lt;/num&gt;
      &lt;content&gt;
          &lt;b&gt;Some text with scientic name:&lt;/b&gt;&lt;b&gt;
              &lt;i&gt;fhadinistis&lt;/i&gt;
          &lt;/b&gt;
      &lt;/content&gt;
  &lt;/cap&gt;
  </code></pre>
  
  <p>Desired output should be:(notice that there is a space between the closing and opening bold tag)</p>
  
  <pre><code>&lt;cap&gt;
      &lt;text&gt;Box&lt;/text&gt;
      &lt;num&gt;1&lt;/num&gt;
      &lt;content&gt;
          &lt;b&gt;Some text with scientic name:&lt;/b&gt; &lt;b&gt;
              &lt;i&gt;fhadinistis&lt;/i&gt;
          &lt;/b&gt;
      &lt;/content&gt;
  &lt;/cap&gt;
  </code></pre>
  
  <p>My XSLT is:</p>
  
  <pre><code>&lt;xsl:template match="em"&gt;
      &lt;xsl:choose&gt;
          &lt;xsl:when test="@type='bolditalic'"&gt;
              &lt;b&gt;
                  &lt;it&gt;
                      &lt;xsl:apply-templates/&gt;
                  &lt;/it&gt;
              &lt;/b&gt;
          &lt;/xsl:when&gt;
          &lt;xsl:when test="@type='boldunderline'"&gt;
              &lt;b&gt;
                  &lt;ul&gt;
                      &lt;xsl:apply-templates/&gt;
                  &lt;/ul&gt;
              &lt;/b&gt;
          &lt;/xsl:when&gt;
          &lt;xsl:when test="@type='italicunderline'"&gt;
              &lt;it&gt;
                  &lt;ul&gt;
                      &lt;xsl:apply-templates/&gt;
                  &lt;/ul&gt;
              &lt;/it&gt;
          &lt;/xsl:when&gt;                 
      &lt;/xsl:choose&gt;
  &lt;/xsl:template&gt;
  </code></pre>