Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2005 23:16:54 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        pav@FreeBSD.org
Cc:        doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: www/share/sgml templates.usergroups.xsl
Message-ID:  <20051201.231654.21910274.hrs@allbsd.org>
In-Reply-To: <1133442525.95515.22.camel@pav.hide.vol.cz>
References:  <1133433030.95515.19.camel@pav.hide.vol.cz> <20051201.211535.90116203.hrs@allbsd.org> <1133442525.95515.22.camel@pav.hide.vol.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Thu_Dec__1_23_16_54_2005_918)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Pav Lucistnik <pav@FreeBSD.org> wrote
  in <1133442525.95515.22.camel@pav.hide.vol.cz>:

pa> But there is a
pa>
pa> <meta http-equiv="Content-Type" content="text/html;
pa> charset=ISO-8859-1" />
pa>
pa> inside variable header1, so output should be iso8859-1 too.

 No.  This line will be silently ignored (and replaced).  xsltproc
 actually outputs a <meta> based on "encoding" attribute in
 <xsl:output> when the output method is HTML or XHTML.
 The XSLT 1.0 specification also says the following:

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

 So, we cannot output a bogus charset= line when the output is
 HTML or XHTML.  When we need to change it, we must use <xsl:output>
 by using the language-dependent customization layer.

--
| Hiroki SATO

----Security_Multipart(Thu_Dec__1_23_16_54_2005_918)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDjwXWTyzT2CeTzy0RAhTGAJ9Duiy670Z/kHRd81kjSogvwxfGywCeL+g6
wT7xQ4ia4Lk2jTGSyfCiNRE=
=XvYg
-----END PGP SIGNATURE-----

----Security_Multipart(Thu_Dec__1_23_16_54_2005_918)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051201.231654.21910274.hrs>