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>

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";

<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.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,


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to