xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Douglas" <edoug...@blockhouse.com>
Subject RE: DO NOT REPLY [Bug 51266] New: generate xsl to fo conversion problem
Date Wed, 25 May 2011 15:42:39 GMT
That's not a bug.  That's a normal message returned from processing.
There can be no answer unless you attach a sample of the input you
provided. 

-----Original Message-----
From: bugzilla@apache.org [mailto:bugzilla@apache.org] 
Sent: Wednesday, May 25, 2011 11:31 AM
To: fop-dev@xmlgraphics.apache.org
Subject: DO NOT REPLY [Bug 51266] New: generate xsl to fo conversion
problem

https://issues.apache.org/bugzilla/show_bug.cgi?id=51266

             Bug #: 51266
           Summary: generate xsl to fo conversion problem
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fo tree
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: vinod.pachpute@credentek.com
    Classification: Unclassified


I give the command
sh /home/vinod/FOP/fop-1.0/fop -xsl rapg_internal.xsl -xml
oldxmlformat.xml -pdf myfile.pdf

But I got error as follows :


25 May, 2011 8:56:00 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException:
First element must be the fo:root formatting object. Found (Namespace
URI: "", Local
Name: "head") instead. Please make sure you're producing a valid XSL-FO
document.
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: First element must be the fo:root
formatting object. Found (Namespace URI: "", Local Name: "head")
instead.
Please make sure you're producing a valid XSL-FO document.
    at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
    at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
    at org.apache.fop.cli.Main.startFOP(Main.java:174)
    at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: First element must be the fo:root
formatting object. Found (Namespace URI: "", Local Name: "head")
instead.
Please make sure you're producing a valid XSL-FO document.
    at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:1323)
    at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2411)
    at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:1374)
    at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2411)
    at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2281)
    at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1367)
    at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:709)
    at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:1284)
    at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:1262)
    at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
    ... 3 more
Caused by: org.apache.fop.fo.ValidationException: First element must be
the fo:root formatting object. Found (Namespace URI: "", Local Name:
"head") instead. Please make sure you're producing a valid XSL-FO
document.
    at
org.apache.fop.events.ValidationExceptionFactory.createException(Validat
ionExceptionFactory.java:38)
    at
org.apache.fop.events.EventExceptionManager.throwException(EventExceptio
nManager.java:54)
    at
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroad
caster.java:175)
    at $Proxy0.invalidFORoot(Unknown Source)
    at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder
.java:261)
    at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
    at
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.
java:204)
    at
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:27
7)
    at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHan
dler.java:348)
    at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHan
dler.java:318)
    at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:1315)
    ... 12 more

Please give me solution.

--
Configure bugmail:
https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: ------- You are the
assignee for the bug.

Mime
View raw message