Skip site navigation (1)Skip section navigation (2)
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

--=-/qfT4oU4mpAPy3jABFnR
Content-Type: text/plain; charset=ISO8859-2
Content-Transfer-Encoding: quoted-printable

Hiroki Sato p=ED=B9e v =E8t 01. 12. 2005 v 23:16 +0900:
> Pav Lucistnik <pav@FreeBSD.org> wrote
>   in <1133442525.95515.22.camel@pav.hide.vol.cz>:
>=20
> pa> But there is a
> pa>
> pa> <meta http-equiv=3D"Content-Type" content=3D"text/html;
> pa> charset=3DISO-8859-1" />
> pa>
> pa> inside variable header1, so output should be iso8859-1 too.
>=20
>  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:
>=20
>   |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=3D"Content-Type" content=3D"text/html; charset=3DEUC=
-JP">
>   | ...
>=20
>  So, we cannot output a bogus charset=3D 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 &uacute; and others in xml source when
outputting into other charsets, like euc-jp?

--=20
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.

--=-/qfT4oU4mpAPy3jABFnR
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=

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

iD8DBQBDjwdwntdYP8FOsoIRAud0AKCSk91H0ONCyL5NhoD4vqsH+vvuOgCfRUX8
fBRp6hSYIOFssYx5QAosoGU=
=3NCV
-----END PGP SIGNATURE-----

--=-/qfT4oU4mpAPy3jABFnR--



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