title: Why is it not OK to put a xsl:value-of into a fo:block?
body: <p>I have the following XSL file:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;xsl:stylesheet version=&quot;2.0&quot;
                  xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
                  xmlns:fo=&quot;http://www.w3.org/1999/XSL/Format&quot;&gt;
      &lt;xsl:output media-type=&quot;text&quot; omit-xml-declaration=&quot;yes&quot;/&gt;
  
      &lt;xsl:template match=&quot;root/branch&quot;&gt;
  
          &lt;fo:root&gt;
  
              &lt;fo:layout-master-set&gt;
                  &lt;fo:simple-page-master master-name=&quot;simple&quot;
                                         page-height=&quot;29.7cm&quot;
                                         page-width=&quot;21cm&quot;
                                         margin-top=&quot;1cm&quot;
                                         margin-bottom=&quot;2cm&quot;
                                         margin-left=&quot;2.5cm&quot;
                                         margin-right=&quot;2.5cm&quot;&gt;
                      &lt;fo:region-body margin-top=&quot;3cm&quot;/&gt;
                      &lt;fo:region-before extent=&quot;3cm&quot;/&gt;
                      &lt;fo:region-after extent=&quot;1.5cm&quot;/&gt;
                  &lt;/fo:simple-page-master&gt;
              &lt;/fo:layout-master-set&gt;
  
              &lt;fo:page-sequence master-reference=&quot;simple&quot;&gt;
                  &lt;fo:flow flow-name=&quot;xsl-region-body&quot;&gt;
  
                      &lt;fo:block font-size=&quot;12pt&quot;
                                font-family=&quot;sans-serif&quot;
                                line-height=&quot;15pt&quot;
                                space-after.optimum=&quot;3pt&quot;
                                text-align=&quot;justify&quot;&gt;
                          &lt;xsl:value-of select=&quot;branch/greenLeave&quot;/&gt;
                          &lt;xsl:value-of select=&quot;branch/yellowLeave&quot;/&gt;
                      &lt;/fo:block&gt;
  
                  &lt;/fo:flow&gt;
              &lt;/fo:page-sequence&gt;
          &lt;/fo:root&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  <p>When I open it in IDEA IntelliJ, I get the following error message:
  <a href="https://i.stack.imgur.com/iKNwy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iKNwy.png" alt="Error message in IntelliJ" /></a></p>
  <p>Does anybody know what is wrong here? I cannot find a plausible explanation.</p>