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 Kr...@tatrabanka.sk on 2001/12/07 09:57:29 UTC
encoding
Hi,
I'm beginner in FOP. I have a problem with windows-1250 encoding, please help
me. My source XML documents looks like this:
<?xml version="1.0" encoding="windows-1250"?>
<did>7 3 4 12 15 16 122</did>
<acc>2613233761</acc>
...
...
I use xsl-fo document to transform source document to plain text:
<?xml version="1.0" encoding="windows-1250"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<xsl:output encoding="windows-1250"/>
<xsl:template match="sttmt">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
...
...
but result text file is not encoded in "windows-1250". I use this code sequence
to produce text output:
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_TXT);
driver.setOutputStream(new FileOutputStream("result.txt"));
InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
driver.render(inputHandler.getParser(), inputHandler.getInputSource());
but it does'n run properly. The result document is unreadable. I use Xerces
1.4.4, Xalan 2.2 and Fop 0.20.1.
I don't know what I do wrong. Can you give me advice how could I solve this?
Thank you for helping,
Kristian
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org