[Home] [By Thread] [By Date] [Recent Entries]

  • From: Julian Reschke <julian.reschke@g...>
  • To: Ursprung Manfred <Manfred.Ursprung@b...>,"xml-dev (E-Mail)" <xml-dev@l...>
  • Date: Fri, 05 Oct 2001 10:21:09 +0200

> From: Ursprung Manfred [mailto:Manfred.Ursprung@b...]
> Sent: Friday, October 05, 2001 10:09 AM
> To: xml-dev (E-Mail)
> Subject:  set encoding attribute
> 
> 
> Hi all,
> 
> I used Xalan and msxml3 parser for converting Xml-file with 
> Xslt-stylesheet.
> Xalan set encoding to UTF-8 and
> Msxml set it to UTF-16.
> But I want to set it to ISO-8859-1.
> 
> Do anyone know how it is possible to set in the output from 
> transformation 
> the first declaration like:
> <?xml version="1" encoding="ISO-8859-1" ?>

That would be wrong anyway (wrong XML version number).
 
> Help appreciated.

Use

<xsl:output encoding="iso-8859-1" />

(but keep in mind that XSLT engines don't need to support this encoding).


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member