Altova Mailing List Archives

RE: [xsl] default meta tag Revisted

From: "Tanzila Mohammad" <tmohammad@-------------------->
Date: 9/4/2001 9:14:00 AM
I am trying to develop a single XSL stylesheet which can handle a number of
languages. Is there a way of using a parameter or some other method for the
value of the encoding attribute in the XSL?
i.e. something like this? - <xsl:output encoding="$param"/>

Instead of hard-coding i.e. <xsl:output encoding="iso-8859-6"/>, which would
then require me to have separate stylesheets for each language that has
different encoding (namely Arabic and Chinese).



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David
Sent: 04 September 2001 14:33
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] default meta tag??

> The problem is in the output - the duplicate meta tag, is there a default
> setting that I am missing? How do I remove the following?
> <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

You don't want to remove that: You want to remove the other one (which
is wrong)

The meta element has to specify the encoding that is used in the
document. The XSL engine chooses the encoding it wants to use,
and automatically adds the correct meta tag.

if you just output the meta tag for iso-8859-6, the document will not be
written out in that encoding, so it will just be wrong information for
the browser.

If you want to output the file in iso-8859-6 then use
<xsl:output encoding="iso-8859-6"/>
then _if_ your XSL engine supports that encoding, it will output the
file in that encoding and add a meta element specifying that encoding.


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.