You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/05/25 17:31:28 UTC

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.java:1323)
    at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
    at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
    at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
    at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
    at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
    at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
    at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
    at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: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(ValidationExceptionFactory.java:38)
    at
org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:54)
    at
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.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:277)
    at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:348)
    at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:318)
    at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java: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.

DO NOT REPLY [Bug 51266] generate xsl to fo conversion problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51266

Andreas L. Delmelle <ad...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andreas L. Delmelle <ad...@apache.org> 2011-05-25 18:03:25 UTC ---

As Eric Douglas already pointed out on the fop-dev@ mailing list (to which,
maybe, you are not subscribed), this is a general usage problem, not a bug. You
are providing FOP with invalid input. It looks like your stylesheet produces an
HTML/XHTML hybrid, which FOP is not designed to handle.

At any rate, for general usage questions, this is not the appropriate forum.
Please subscribe to fop-users@xmlgraphics.apache.org(*) or post your question
there via Nabble or some such. (preferably including a small sample that allows
others to reproduce the problem)

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

DO NOT REPLY [Bug 51266] generate xsl to fo conversion problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51266

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-01 13:43:03 UTC ---
batch transition to closed for remaining resolved bugs

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

RE: DO NOT REPLY [Bug 51266] New: generate xsl to fo conversion problem

Posted by Eric Douglas <ed...@blockhouse.com>.
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.

DO NOT REPLY [Bug 51266] generate xsl to fo conversion problem

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51266

--- Comment #2 from Andreas L. Delmelle <ad...@apache.org> 2011-05-25 18:04:28 UTC ---

... and here's the link I intended to include:
(*) http://xmlgraphics.apache.org/fop/maillist.html

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