Exception:
SystemId Unknown; Line #0; Column #0; java.lang.IllegalStateException: endElement() called for fo:root where there is no current element.
The above exception occurs while the xml is transformed and reason is "xml not constructed properly.
Explanation :
In this case, this exception happened, as the <li>data</li> list items are constructed with out a parent <ul></ul> tag element.
After all the list items are placed in a parent <ul></ul> unordered list tag, this exception got fixed.
Solution :
The xml that has to be transformed into PDF or other formats should be constructed properly.
Detailed exception :
2012-07-21 09:04:30,424 WARN
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2) Mismatch: table-cell
(http://www.w3.org/1999/XSL/Format)
vs. list-item (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:30,424 WARN
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2) Mismatch: table-row (http://www.w3.org/1999/XSL/Format)
vs. table-cell (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:30,424 WARN
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2) Mismatch: table-body
(http://www.w3.org/1999/XSL/Format)
vs. table-row (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:30,424 WARN
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2) Mismatch: table (http://www.w3.org/1999/XSL/Format)
vs. table-body (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:30,424 WARN [org.apache.fop.fo.FOTreeBuilder]
(http-127.0.0.1-8080-2) Mismatch: flow (http://www.w3.org/1999/XSL/Format)
vs. table (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:30,424 WARN
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2) Mismatch:
page-sequence (http://www.w3.org/1999/XSL/Format)
vs. flow (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:31,440 WARN
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2) Mismatch: root (http://www.w3.org/1999/XSL/Format)
vs. page-sequence (http://www.w3.org/1999/XSL/Format)
2012-07-21 09:04:31,440 ERROR
[org.apache.fop.fo.FOTreeBuilder] (http-127.0.0.1-8080-2)
javax.xml.transform.TransformerException: java.lang.IllegalStateException:
endElement() called for fo:root where there is no current element.
2012-07-21 09:04:31,441 ERROR [STDERR]
(http-127.0.0.1-8080-2) SystemId Unknown; Line #0; Column #0;
java.lang.IllegalStateException: endElement() called for fo:root where there is
no current element.
No comments:
Post a Comment