W3C home > Mailing lists > Public > spec-prod@w3.org > July to September 2001

Duplicated charset information in HTML output

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Wed, 11 Jul 2001 19:35:13 +0900
To: spec-prod@w3.org
Cc: www-xml-linking-comments@w3.org
Message-Id: <20010711193513D.mimasa@w3.mag.keio.ac.jp>
In an XSL stylesheet for XMLspec used for XLink/XML Base RECs, 
the HTML output method is specified as follows:

  <xsl:output method="html"
       doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"

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,

      <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

Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Wednesday, 11 July 2001 06:34:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:16 UTC