OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xml-dev] set encoding attribute



> From: Ursprung Manfred [mailto:Manfred.Ursprung@baeurer.de]
> Sent: Friday, October 05, 2001 10:09 AM
> To: xml-dev (E-Mail)
> Subject: [xml-dev] 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).