title: Setting background color for a text in XSLFO
body: <p>Im very new to the XSLFO.
  I have a requirement to color a text entry based on some condition.
  which i do using the snippet</p>
  
  <pre><code>&lt;fo:inline color = "red"&gt;
      &lt;xsl:value-of select="."/&gt;
  &lt;/fo:inline&gt; 
  </code></pre>
  
  <p>With the above snippet i am able to set the forecolor of the text to RED. My question is how to set the background color for the same.</p>
  
  <p>I can add background color using</p>
  
  <pre><code> &lt;fo:inline color = "red"&gt;
     &lt;fo:block background-color = "yellow"&gt;
      &lt;xsl:value-of select="."/&gt;
    &lt;/fo:block&gt; 
   &lt;/fo:inline&gt; 
  </code></pre>
  
  <p>But this is making my entry come on a separate line which isnt my requirement</p>
  
  <p>Though the xslfo documentation says there is a property available for 
  to add the background color for a text. </p>
  
  <pre><code> &lt;fo:inline background-color = "yellow"&gt;
   Hello,World
   &lt;/fo:inline&gt;
  </code></pre>
  
  <p>Im using the xslfo version 1.0</p>
  
  <p>Anyone out there to help me out ?</p>
  
  <p>Regards</p>