Re: [xslt] Removing <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> from html output



On 2007-01-03 13:21:53 +0100, Vincent Lefevre wrote:
> On 2007-01-02 16:59:37 -0500, Daniel Veillard wrote:
> > On Tue, Jan 02, 2007 at 03:12:16PM -0500, T.G. Mutato wrote:
> > > It appears that xsltproc automatically adds the line
> > > 
> > > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> > > 
> > > to html output.
> > 
> >   only on XHTML-1.0 output, not on html output which is something completely
> > different in XSLT . I suggest you consult:
> >     - section 16.1 of the XSLT-1.0 spec
> >        http://www.w3.org/TR/xslt#section-XML-Output-Method

Sorry I snipped the wrong one. So...

    - Appendix C 9 of the XHTML-1.0 spec:
       http://www.w3.org/TR/xhtml1/#C_9

However, as said this section, the meta http-equiv statement is
optional (e.g. if the web server provides the correct headers).

That's why the XSLT spec only says "should" (for HTML output),
as noted by Mike.

-- 
Vincent Lefèvre <vincent vinc17 org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]