This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: default meta tag Revisted


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).

Thanks.

Tanzila


-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of David
Carlisle
Sent: 04 September 2001 14:33
To: xsl-list@lists.mulberrytech.com
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.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]