XFC v5.3.0 was released 8 years ago and is no longer supported. In principle, I'm not supposed to answer your support requests.


On 4/7/23 19:05, Jeff Haynes wrote:

I am having an issue with the following FO converting to RTF in that I get a SAXParseException but I cannot debug into the xmlmind code to figure out why.  I suspect maybe the styles.xfc file, which is referenced by setting the “styles” property to a URI like so.. driver.setProperty("styles", *new*String(styleURI));

Your "styles.xfc" looks fine. The value of styleURI should be the culprit (plus I don't understand "new String(styleURI)"; why "new String()"?).

Make sure that styleURI is a string which contains an URL in its ASCII string form (e.g. "file:///C:/My%20Folder/styles.xfc") or a filename (e.g. "C:\My Folder\styles.xfc"). A relative filename is relative to the current working directory.




is not being obtained, however I don’t see any reference in the access.log for that website.  Is there a way to turn on more logging,

Sorry but the answer is no: XFC has no logging facilities of its own.




or obtain the source code in order to step through the code?

The license you have purchased, fc-dev, gives you access to the full source code of our product. You or one of your coworkers may already have a copy of this source code.

I'm sorry but I cannot send you a copy of XFC v5.3.0 source code because: 1) this source code is not online anymore, so it would be technically difficult for me to do that; 2) your support contract is over.

Besides, there is almost certainly no bug in UserStyles.loadFrom, UserStylesLoader.load. Something like:
---
fo2rtf -styles=styles.xfc xslFO_GenException.xml xslFO_GenException.rtf
---
works fine (tested with latest version of XFC which is v6.4).












Caused by: org.xml.sax.SAXParseException; Premature end of file.

This basically means that instead of loading your "styles.xfc", the user styles parser of XFC attempts to load something else: a non-XML file, a non-existing file, an empty file, a directory, etc.





at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

at com.xmlmind.fo.converter.UserStylesLoader.load(UserStylesLoader.java:74)

at com.xmlmind.fo.converter.UserStylesLoader.load(UserStylesLoader.java:49)

at com.xmlmind.fo.converter.UserStyles.loadFrom(UserStyles.java:525)

at com.xmlmind.fo.converter.Converter.loadUserStyles(Converter.java:670)

at com.xmlmind.fo.converter.Converter.setUserStyles(Converter.java:646)

at com.xmlmind.fo.converter.Converter.startDocument(Converter.java:626)

at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)

at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(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.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

*at com.xmlmind.fo.converter.Converter.convert(Converter.java:517)***

***at com.xmlmind.fo.converter.Driver.convert(Driver.java:544)***

***at com.xmlmind.fo.converter.Driver.convert(Driver.java:559)***

at com.bm.xchange.bmlib.fo.XmlMind.getRTFFromFO(XmlMind.java:74)




--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to