Hi Suzanne,

The input encoding of the document is either specifed by the XML
declaration, or is assumed to be UTF-8.  If it is not UTF-8, you should
specify it.  Likewise, for stylesheets, Xalan-C always uses UTF-8, unless
you have indicate the desired output encoding in the xsl:output element of
the stylesheet.

However, systems are only required to support UTF-8 and UTF-16 for
conformance, so the full range of encodings may not be available to you.
If you've built the Xerces parser with the ICU as its transcoding system,
you will have a huge range encodings available for both input and output.

SimpleXPathAPI is a bit different, because it is just a sample program to
demonstrate the API, so it transcodes the result to the local code page for
the machine.

Dave



                                                                                       
                                                        
                      Suzanne Dirkers                                                  
                                                        
                      <[EMAIL PROTECTED]         To:      [EMAIL PROTECTED]            
                                                   
                      com>                     cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                                   
                                               Subject: input and output default 
encodings                                                     
                      03/06/2003 06:50                                                 
                                                        
                      AM                                                               
                                                        
                      Please respond                                                   
                                                        
                      to xalan-dev                                                     
                                                        
                                                                                       
                                                        







Folks,

         I was reading the Xalan documentation APIs and although most of
the samples seem to take ascii xml files as input and also ascii
stylesheets as input, some samples give their output in ebcdic ( ie,
SimpleXPathAPI, if you are on OS390 HFS)..and I was wondering how one knows
what Xalan expects its input files to be in or its output files, and if
there is a way that one might specify a different encoding input or output
scheme.

Thanks,
Suzanne



Reply via email to