org.apache.fop.fo.ValidationException

First element must be the fo:root formatt ing object. Found (Namespace URI: "http://www.w3.org/1999/xhtml", Local Name: "h tml") instead. Please make sure you're producing a valid XSL-FO document.


Solutions on the web61

Solution icon of web
via developpez.net by Unknown author, 11 months ago
First element must be the fo:root formatt ing object. Found (Namespace URI: "http://www.w3.org/1999/xhtml", Local Name: "h tml") instead. Please make sure you're producing a valid XSL-FO document.

Solution icon of web
via developpez.net by Unknown author, 11 months ago
First element must be the fo:root formatt ing object. Found (Namespace URI: "http://www.w3.org/1999/xhtml", Local Name: "h tml") instead. Please make sure you're producing a valid XSL-FO document.

Solution icon of web
via oxygenxml.com by Unknown author, 11 months ago
Error: First element must be the fo:root formatting object. Found (Namespace URI: "http://www.w3.org/1999/XSL/Transform", Local Name: "stylesheet") instead. Please make sure you're producing a valid XSL-FO document.

Solution icon of web
via nabble.com by Unknown author, 1 year ago
Error: First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "html") instead. Please make sure you're producing a valid XSL-FO document.

Solution icon of web
via nabble.com by Unknown author, 11 months ago
First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "style") instead. Please make sure you're producing a valid XSL-FO document.

Solution icon of web
via kldp.org by Unknown author, 11 months ago
Error: First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "html") instead. Please make sure you're producing a valid XSL-FO document.

Solution icon of web
via mail-archive.com by Unknown author, 11 months ago
Error: First element must be the fo:root formatting object. Found (Namespace URI: " ;, Local Name: "stylesheet") instead. Please make sure you're producing a valid XSL-FO document. at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transform erIdentityImpl.java:501)

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
"{http://www.w3.org/1999/XSL/Format}inline" is not a valid child of "fo:flow"! (See position 4:-1)

Solution icon of kuali
via Kuali JIRA by Erik Meade, 10 months ago
"{http://www.w3.org/1999/XSL/Format}list-item" is not a valid child of "fo:block"! (See position 2097:131)

Solution icon of stackoverflow
via Stack Overflow by cdecker
, 1 year ago
file:/tmp/fop_1613051806105460695.fo:289:126: Error(289/126): fo:table-row is not a valid child element of forEach.

Stack trace

  • org.apache.fop.fo.ValidationException: First element must be the fo:root formatt ing object. Found (Namespace URI: "http://www.w3.org/1999/xhtml", Local Name: "h tml") instead. Please make sure you're producing a valid XSL-FO document. at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38) at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58) at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175) at com.sun.proxy.$Proxy0.invalidFORoot(Unknown Source) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:259) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130) at org.apache.fop.cli.Main.startFOP(Main.java:177) at org.apache.fop.cli.Main.main(Main.java:208)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates