net.sf.saxon.trans.XPathException

org.apache.fop.fo.ValidationException: Error: First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "CINEMA") instead. Please make sure you're producing a valid XSL-FO document.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web96

  • via oxygenxml.com by Unknown author, 10 months ago
    org.apache.fop.fo.ValidationException: Error: First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "CINEMA") instead. Please make sure you're producing a valid XSL-FO document.
  • org.apache.fop.fo.ValidationException: "fo:block" is not a valid child of "fo:root"! (See position 5802:-1)
  • via Stack Overflow by Unknown author, 1 year ago
    org.apache.fop.fo.ValidationException: "{http://www.w3.org/1999/XSL/Format}inline" is not a valid child of "fo:flow"! (See position 4:-1)
  • Stack trace

    • net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Error: First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "CINEMA") instead. Please make sure you're producing a valid XSL-FO document. at net.sf.saxon.event.ContentHandlerProxy.handleSAXException(ContentHandlerProxy.java:521) at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:375) at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:197) at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:364) at org.apache.xerces.parsers.AbstractSAXParser.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 net.sf.saxon.event.Sender.sendSAXSource(Sender.java:371) at net.sf.saxon.event.Sender.send(Sender.java:185) at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:29) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) Caused by: org.apache.fop.fo.ValidationException: Error: First element must be the fo:root formatting object. Found (Namespace URI: "", Local Name: "CINEMA") instead. Please make sure you're producing a valid XSL-FO document. at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:292) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:362) ... 19 more

    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

    You’re the first here who have seen this exception.