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

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> 2011-06-11 15:58:55 UTC ---
How much efforts are you going to invest in this utility? In its current form
it is rather a proof of concept than a full-featured convertor. 

I was able to generate XSL-FO for some files from our collection of test Word
documents. FOP 1.0 renders simple files, but stumbles on more complex ones:

Several times I've seen this:

Caused by: org.xml.sax.SAXParseException: Character reference "&#12" is an
invalid XML character.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)

and this:

javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: Border and padding for fo:region-body
"xsl-region-body" sho
ld be '0' (See 6.4.14 in XSL 1.1); non-standard values are allowed if relaxed
validation is enabled.  (See position 5:411)
       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)

Also, I see warnings in the console:

Jun 11, 2011 7:19:10 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Invalid property value encountered in linefeed-treatment="false":
org.apache.fop.fo.expr.PropertyException: file:/C:/temp/DiffFirstP
ageHeadFoot.xml:9:38: No conversion defined false;
property:'linefeed-treatment' (See position 10:520)
Jun 11, 2011 7:19:10 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Invalid property value encountered in linefeed-treatment="false":
org.apache.fop.fo.expr.PropertyException: file:/C:/temp/DiffFirstP
ageHeadFoot.xml:9:38: No conversion defined false;
property:'linefeed-treatment' (See position 16:520)
Jun 11, 2011 7:19:10 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Invalid property value encountered in keep-together.within-page="true":
org.apache.fop.fo.expr.PropertyException: file:/C:/temp/Diff
FirstPageHeadFoot.xml:9:38: No conversion defined true;
property:'keep-together.within-page' (See position 20:578)
Jun 11, 2011 7:19:10 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Invalid property value encountered in
keep-with-next.within-page="true": org.apache.fop.fo.expr.PropertyException:
file:/C:/temp/Dif
fFirstPageHeadFoot.xml:9:38: No conversion defined true;
property:'keep-with-next.within-page' (See position 20:578)
Jun 11, 2011 7:19:10 PM org.apache.fop.events.LoggingEventListener processEvent 

WordToFOExtractor is a very promising feature, the question is where it should
live: in poi-examples as a simple demo, or with the rest of HWPF code as a
well-tested code.

Regards,
Yegor

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to