cvs commit: www/share/sgml templates.usergroups.xsl

Hiroki Sato hrs at
Thu Dec 1 14:17:43 GMT 2005

Pav Lucistnik <pav at> wrote
  in <1133442525.95515.22.camel at>:

pa> But there is a
pa> <meta http-equiv="Content-Type" content="text/html;
pa> charset=ISO-8859-1" />
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 :

More information about the cvs-doc mailing list