Pav Lucistnik <[EMAIL PROTECTED]> wrote in <[EMAIL PROTECTED]>:
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
pgpv8tMOpxVxH.pgp
Description: PGP signature