Duplicated charset information in HTML output

In an XSL stylesheet for XMLspec used for XLink/XML Base RECs, 
the HTML output method is specified as follows:

  <xsl:output method="html"
       encoding="ISO-8859-1"
       doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
       indent="no"/>

And also the template for the spec element generates the following
line, among other things:

   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>

But "16.2 HTML Output Method" of XSLT 1.0 says [1]:

   The encoding attribute specifies the preferred encoding to be used. If
   there is a HEAD element, then the html output method should add a META
   element immediately after the start-tag of the HEAD element specifying
   the character encoding actually used. For example,

      <HEAD>
      <META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
      ...

As a result, the HTML version of XLink/XML Base RECs has the meta
charset declaration twice.

[1] ahttp://www.w3.org/TR/xslt#section-HTML-Output-Method

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Wednesday, 11 July 2001 06:34:46 UTC