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 &eacute instead
of � in the html document.






Reply via email to