Date: Thu, 01 Dec 2005 15:23:44 +0100 From: Pav Lucistnik <pav@FreeBSD.org> To: Hiroki Sato <hrs@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: <1133447024.95515.42.camel@pav.hide.vol.cz> In-Reply-To: <20051201.231654.21910274.hrs@allbsd.org> References: <1133433030.95515.19.camel@pav.hide.vol.cz> <20051201.211535.90116203.hrs@allbsd.org> <1133442525.95515.22.camel@pav.hide.vol.cz> <20051201.231654.21910274.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hiroki Sato píše v čt 01. 12. 2005 v 23:16 +0900:
> 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.
Aha. So should the <meta> line be removed from the header1 variable?
It surely confused me.
To avoid a duplication of xsl files in share/sgml/ and en/, would some
kind of mechanism to pass encoding parametr to xsltproc from en/Makefile
ja/Makefile etc be useful? I thought about passing it in --stringparam
or somesuch.
Also, is there any problem with ú and others in xml source when
outputting into other charsets, like euc-jp?
--
Pav Lucistnik <pav@oook.cz>
<pav@FreeBSD.org>
Eat when you are hungry, sleep when you are tired.
Chase butterflies when you want some fun.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
iD8DBQBDjwdwntdYP8FOsoIRAud0AKCSk91H0ONCyL5NhoD4vqsH+vvuOgCfRUX8
fBRp6hSYIOFssYx5QAosoGU=
=3NCV
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1133447024.95515.42.camel>
