title: Problem using XSL to produce PDF in JAVA. No LayoutManager maker for class class org.apache.fop.fo.flow.TableAndCaption
body: <p>Got a problem using XSL to produce PDF in JAVA.
  Always get "No LayoutManager maker for class class org.apache.fop.fo.flow.TableAndCaption".
  Here's the XSL source:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="Windows-1251"?&gt;
  &lt;xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"&gt;
      &lt;xsl:output method="xml" version="2.0" media-type="application/xslfo+xml" indent="yes" encoding="Windows-1251"/&gt;
      &lt;xsl:template match="RootPart"&gt;
          &lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
              &lt;fo:layout-master-set&gt;
                  &lt;fo:simple-page-master master-name="allPages" page-height="297mm" page-width="210mm" margin-top="5mm" margin-bottom="5mm" margin-left="20mm" margin-right="5mm"&gt;
                      &lt;fo:region-body margin-top="5mm"/&gt;
                  &lt;/fo:simple-page-master&gt;
              &lt;/fo:layout-master-set&gt;
              &lt;fo:page-sequence font-family="arial" font-size="9pt" font-weight="normal" master-reference="allPages"&gt;             
                  &lt;fo:flow flow-name="xsl-region-body"&gt;
                      &lt;fo:table-and-caption table-layout="fixed" &gt;    
                          &lt;fo:table border-style="solid" border-width="0.3mm" border-color="black"&gt;
                              &lt;fo:table-column column-width="97mm"/&gt;
                              &lt;fo:table-column column-width="97mm"/&gt;
                              &lt;fo:table-header&gt;
                                  &lt;fo:table-cell&gt;
                                      &lt;fo:block&gt;TEST1&lt;/fo:block&gt;
                                  &lt;/fo:table-cell&gt;
                                  &lt;fo:table-cell&gt;
                                      &lt;fo:block&gt;TEST2&lt;/fo:block&gt;
                                  &lt;/fo:table-cell&gt;
                              &lt;/fo:table-header&gt;
                              &lt;fo:table-body&gt;
                                  &lt;fo:table-row height = "5mm"&gt;
                                          &lt;fo:table-cell&gt;
                                          &lt;fo:block&gt;Volvo&lt;/fo:block&gt;
                                      &lt;/fo:table-cell&gt;
                                      &lt;fo:table-cell&gt;
                                          &lt;fo:block&gt;$50000&lt;/fo:block&gt;
                                      &lt;/fo:table-cell&gt;
                                  &lt;/fo:table-row&gt;
                                  &lt;fo:table-row&gt;
                                      &lt;fo:table-cell&gt;
                                          &lt;fo:block&gt;SAAB&lt;/fo:block&gt;
                                      &lt;/fo:table-cell&gt;
                                      &lt;fo:table-cell&gt;
                                          &lt;fo:block&gt;$48000&lt;/fo:block&gt;
                                      &lt;/fo:table-cell&gt;
                                  &lt;/fo:table-row&gt;
                              &lt;/fo:table-body&gt;
                          &lt;/fo:table&gt;
                      &lt;/fo:table-and-caption&gt;
                  &lt;/fo:flow&gt;
              &lt;/fo:page-sequence&gt;
          &lt;/fo:root&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>