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"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
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
non-XML output.
Liam
--
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--