Non-terminated meta tag for content-type?

23 views
Skip to first unread message

abo...@gmail.com

unread,
May 23, 2013, 3:27:56 PM5/23/13
to mod-...@googlegroups.com
Little idiosyncrasy of mine here. Would it be possible to get the auto-generated meta tag for content type terminated? i.e. change this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

To this:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


I'm aware that browsers can render the output fine if the correct xsl:output tag is specified, so this is just a minor styling nitpick. Thanks!



Carlo Contavalli

unread,
May 24, 2013, 11:43:54 AM5/24/13
to mod-...@googlegroups.com
On Thu, May 23, 2013 at 12:27 PM, <abo...@gmail.com> wrote:
> Little idiosyncrasy of mine here. Would it be possible to get the
> auto-generated meta tag for content type terminated? i.e. change this:
>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>

Do you have an <xsl:output ... /> statement in your stylesheet?

I believe that if the attribute "method" is set to "html", it will
generate output that is not necessarily valid xml, but strictly
follows the html standard. In particular, I believe html 4.0 if no
version is specified.

I would try adding something like:

<xsl:output method="xhtml" />

or

<xsl:output method="xml" />

in your stylesheet. You can find the full description of <xsl:output>,
including the conversion rules, here:

http://www.w3.org/TR/xslt#output.


Hope this helps,
Carlo
Reply all
Reply to author
Forward
0 new messages