I have a servlet that produces contracts. There are several different contracts, but they very similar.
The first version used a very generic style sheet which defined things like paragraph and header. Each contract was defined in an xml file. The program ran through the file and inserted specific values. The resulting file and the stylesheet were then used to produce the pdf. This works, but is slow because the files are read each time. After seeing the new examples in fop-0.20.5rc, I have changed this. I now have one xsl-file per contract. From this file I make a Templates object. I have one source xml that I use for all contracts. It looks like this: private static final String XML = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<tom/>"; Values are set by Transformer.setParameter . As expected this is much faster. But I have a problem. Non-ASCII characters (such as the last letters of the alphabet) are changed. For example ANS�TTELSESKONTRAKT becomes ANS�#TTELSESKONTRAKT. I start both the source xml and each xsl with <?xml version=\"1.0\" encoding=\"ISO-8859-1\"?> , but this seems to be ignored. Is there some way to set the encoding? Klaus Kristiansen Q8 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
