Just an FYI on how to fix a very serious looking error that was driving me crazy -- here is the partial trace:
ERROR [org.apache.fop.fo.FOTreeBuilder] javax.xml.transform.TransformerException: java.lang.IllegalStateException: endElement() called for fo:root where there is no current element ERROR [STDERR] file:///Report.xsl; Line #17; Column #40; java.lang.IllegalStateException: endElement() called for fo:root where there is no current element It took me a bit, but I finally figured it out (at least in my case). I had a table that had extra cells in a row. For example: column count=5 <column colWidth="25mm" datatype="C"/> <column colWidth="10mm" datatype="I"/> <column colWidth="10mm" datatype="C"/> <column colWidth="10mm" datatype="I"/> <column colWidth="20mm" datatype="I"/> <reportrow> <cell>A</cell> <cell>B</cell> <cell>C</cell> <cell>D</cell> <cell>E</cell> </reportrow> <reportrow> <cell>A</cell> <cell>B</cell> <cell>C</cell> <cell>D</cell> <cell>E</cell> <cell>F</cell> <!--BAD--> </reportrow> HTH -Lou
