[XSL-LIST Mailing List Archive Home]
Re: [xsl] Open Meta Tag problem
Subject: Re: [xsl] Open Meta Tag problem|
From: Liam R E Quin <liam@xxxxxx>
Date: Thu, 20 May 2010 15:59:24 -0400
On Thu, 2010-05-20 at 12:31 -0700, Karl Stubsjoen wrote:
> This seems like such an ancient topic, but here it goes...
> I have the following:
> <xsl:output indent="yes" doctype-public="-//W3C//DTD HTML 4.01//EN"
> The resulting HTML document has a bad content-type meta tag:
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> (It is not closed)
Looks like you are generating HTML, and in HTML that's correct.
In XHTML, it's not correct, and the tag ends with />
So use <xsl:output method="xhtml" />
If you're a decade behind the times and are on XSLT 1 :-), then use
<xsl:output method="xml" /> or (better) accept that you are generating
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org