<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kilroy James &#187; doctype</title>
	<atom:link href="http://www.kilroyjames.co.uk/tag/doctype/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kilroyjames.co.uk</link>
	<description>Somerset specialists in web design, web and internet marketing, seo and ecommerce</description>
	<lastBuildDate>Tue, 22 Nov 2011 15:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>XHTML to HTML WordPress plugin</title>
		<link>http://www.kilroyjames.co.uk/2008/07/xhtml-to-html-wordpress-plugin/</link>
		<comments>http://www.kilroyjames.co.uk/2008/07/xhtml-to-html-wordpress-plugin/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 21:25:43 +0000</pubDate>
		<dc:creator>kilroyjames</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[doctype]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mime type]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xml parsing]]></category>

		<guid isPermaLink="false">http://www.kilroyjames.co.uk/?p=93</guid>
		<description><![CDATA[&#160; &#160; This tiny plugin filters WordPress&#8217;s output to produce HTML instead of XHTML. It is simple to use and will ensure that your WordPress Blog stands at least a fighting chance of being properly standards compliant. Download the Plugin! Background The WordPress platform is based with the best intentions, from boots to brow, on [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<div class='et-box et-shadow'>
					<div class='et-box-content'>
<h4>Important</h4>
<p>At last <strong><a href="http://www.kilroyjames.co.uk/2009/09/wordpress/xth/">there is a new version of this plugin</a></strong>.  This version is no longer supported. Please download the new version.</div></div>
<p>&nbsp;</p>
<p>This tiny plugin filters WordPress&#8217;s output to produce HTML instead of XHTML. It is simple to use and will ensure that your WordPress Blog stands at least a fighting chance of being properly standards compliant.</p>
<div class="download">
<h3><a href="http://www.kilroyjames.co.uk/wp-content/uploads/XHTML-to-HTML.zip">Download the Plugin!</a></h3>
</div>
<h5>Background</h5>
<p>The WordPress platform is based with the best intentions, from boots to brow, on XHTML and has been ever since I&#8217;ve been using it. Now this is a shame really because that single fact may be preventing your Blog from being properly standards compliant.</p>
<p>Put your hands up if you are running a blog that serves documents using a MIME type of &#8220;application/XHTML+XML&#8221;? What&#8217;s that deathly silence I hear – what, <em>nobody</em> is doing that? Then in that case <em>nobody</em> (regardless of what doctype you are using) is serving proper XHTML and worse, no one is running a standards compliant website. Perhaps even worse still, <a href="#nobody">you probably shouldn&#8217;t even try to use an XHTML MIME type on your website either</a>. Now I bet you didn&#8217;t know that.</p>
<p>The vast, vast majority of people whose blogs are served as MIME type &#8220;text/html&#8221; should be using the HTML 4.01 doctype rather than XHTML. <a title="XHTML considered harmful" href="http://hixie.ch/advocacy/xhtml">The issues surrounding this problem</a> are considered unfortunately rather technical so I will endeavour to write a lay person&#8217;s guide to the subject soon, covering the issues a bit more simply  than they&#8217;re are in most places I know of.</p>
<p>In the meantime there is a <a href="http://en.wikipedia.org/wiki/Xhtml#External_links">very good article by WebDevout</a> about this which is worth reading.</p>
<h5>What The Plugin Does</h5>
<p>XHTML to HTML is a simple output filter that translates XHTML documents into valid HTML 4.01.</p>
<h5>Do I need to write in HTML now?</h5>
<p>No, you don&#8217;t have to change a thing. All your carefully coded XHTML will translate into pristine HTML 4.01 seamlessly. Remember, WordPress is an XHTML platform – all headers, plugins, themes and filters assume you will be using XHTML as the output Doctype. Whilst this is, technically, wrong (unless you use the right MIME type) you can continue to write in XHTML if you want to. However, you could alternatively switch to writing in HTML 4.01 instead. You do not have to write sloppy hard to read code, keep your tags lowercase if you like, close your tags a&#8217; la XHTML, use a DOCTYPE etc. because that&#8217;s all valid HTML too!</p>
<h5>Installation</h5>
<ol>
<li>Download the plugin using the link above and extract the ZIP archive onto your computer somewhere.</li>
<li>Copy the folder &#8220;XHTML-to-HTML&#8221; to your /wp-content/plugins/ folder</li>
<li>Activate the plugin in WordPress</li>
<li>That&#8217;s it!</li>
</ol>
<h5>Development</h5>
<p>The plugin really does very little, which is not a bad thing for an output filter. It has no bugs I&#8217;m aware of, but suggestions for improvements are always welcome.</p>
<dl class="footnotes">
<dt id="nobody">1. </dt>
<dd>Microsoft browsers do not support XML (XHTML is a type of XML). IE7 has limited support but lower versions have none whatsoever. So, unless you&#8217;d like to banish that audience from your blog you can&#8217;t even consider trying to use XHTML properly – that is, by using the correct MIME type.</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.kilroyjames.co.uk/2008/07/xhtml-to-html-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
	</channel>
</rss>

