I apologize for still asking questions about this subject, but I would like to be sure... So I have seen in the xalan's doc that we can change the xalan's property settings globally. I've decompressed xalan.jar and opened HTMLEntities.res There's a list of letters/encoding mappings. The only thing I have to do for my purpose is it to delete the letters I don't want them to be encoded in the html code (such é?) and to rebuild xalan.jar after this?
Or is there any easier solution? Thanks for your help, Regards, Cyril. ----- Original Message ----- From: "David N Bertoni/Cambridge/IBM" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 24, 2002 5:51 PM Subject: Re: xalan and setting output encoding in the stylesheet Although this behavior is required by the recommendation, you _can_ override it: http://xml.apache.org/xalan-j/usagepatterns.html#outputprops This question has been asked frequently, and a quick search of the mail archives should result in some hits. Dave Denis Haskin <[EMAIL PROTECTED] To: [EMAIL PROTECTED] guson.net> cc: (bcc: David N Bertoni/Cambridge/IBM) Subject: Re: xalan and setting output encoding in the stylesheet 05/24/2002 06:39 AM I'm not sure if you can. Note the following from the spec (section 16.2): "The html output method may output a character using a character entity reference, if one is defined for it in the version of HTML that the output method is using." I *think* it does this without regard to the encoding you're using, and as far as I can tell there's no way to control it, except perhaps specify a version of HTML that doesn't know about those character entity references (is there one)? Is there a reason that you *have* to have these as actual character values instead of entity references? If you're just doing it for testing (which we were) pick test characters that do not have entity references defined in HTML. That worked for us. dwh cyril vidal wrote: > I would like to know how to change the output encoding with XALAN. > For example, when I transform an xml file to a html one, although I set encoding iso-latin 1 in <xsl:output> instruction, I obtain é instead of � in the html document.
