xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Boag/CAM/Lotus" <Scott_B...@lotus.com>
Subject Re: [repost] Setting the encoding type with Xalan
Date Tue, 11 Apr 2000 14:34:14 GMT

Can't you use <xsl:output encoding="iso-8859-1"/> in the stylesheet???
Trying to change the input encoding won't effect the output encoding.
Using xsl:output is the right way to do this.

-scott




                                                                                         
                         
                    Eric van der                                                         
                         
                    Vlist                To:     general@xml.apache.org                  
                         
                    <vdv@dyomedea        cc:     (bcc: Scott Boag/CAM/Lotus)          
                            
                    .com>                Subject:     [repost] Setting the encoding type
with Xalan                
                                                                                         
                         
                    04/11/2000                                                           
                         
                    08:25 AM                                                             
                         
                    Please                                                               
                         
                    respond to                                                           
                         
                    general                                                              
                         
                                                                                         
                         
                                                                                         
                         



Hi,

Of course, the problem is not blocking and I have easily worked around
it with a perl script which is adding the encoding type in the XML
source document.

However, even if only for the beauty of it ;=) I would prefer to make
this functionality work !

Thanks

Eric
--
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
creator                  http://xmlfr.org            http://ducotede.com
editor                   http://xmlhack.com              http://dmoz.org
------------------------------------------------------------------------
----- Message from Eric van der Vlist <vdv@dyomedea.com> on Fri, 07 Apr
2000 09:26:36 +0200 -----
                                  
      To: general@xml.apache.org  
                                  
 Subject: Setting the encoding    
          type with Xalan         
                                  

Hi,

I'd like to be able to set the encoding of the XML files using Xalan
(command line).

I have created an updated version of the Process class to use the
InputSource.setEncoding() method :

-----------
    XSLTInputSource is = new XSLTInputSource();
    is.setEncoding("iso-8859-1");
    is.setSystemId(inFileName);
    Node sourceTree = processor.getSourceTreeFromInput(is);
    stylesheet.process(processor, sourceTree, new
XSLTResultTarget(outputStream));
    System.out.println("encoding : "+ is.getEncoding());
-----------

The trace (last line) is showing the encoding has been taken into
account, but there seem to be no effect on the result (characters are
still not read as iso-8859-1 from the input file).

Do you have any idea of what may be happening ?

Thanks

Eric
--
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
creator                  http://xmlfr.org            http://ducotede.com
editor                   http://xmlhack.com              http://dmoz.org
------------------------------------------------------------------------








Mime
View raw message