cvs commit: www/share/sgml templates.usergroups.xsl
Hiroki Sato
hrs at FreeBSD.org
Thu Dec 1 14:17:43 GMT 2005
Pav Lucistnik <pav at FreeBSD.org> wrote
in <1133442525.95515.22.camel at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-doc/attachments/20051201/3944b2d3/attachment.bin
More information about the cvs-doc
mailing list