<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: application/xhtml+xml</title>
	<atom:link href="http://tntluoma.com/web/applicationxhtmlxml/feed/" rel="self" type="application/rss+xml" />
	<link>http://tntluoma.com/web/applicationxhtmlxml/</link>
	<description>Stuff I've Written Down</description>
	<lastBuildDate>Tue, 23 Nov 2010 20:52:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dominique Hazael-Massieux</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-612</link>
		<dc:creator>Dominique Hazael-Massieux</dc:creator>
		<pubDate>Wed, 04 Dec 2002 12:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-612</guid>
		<description>&lt;p&gt;I have detailed at the URI below how to work around broken browsers and still serve your xhtml as application/xhtml+xml for the good ones in Apache:
&lt;a href=&quot;http://lists.w3.org/Archives/Public/www-archive/2002Dec/0005.html&quot; rel=&quot;nofollow&quot;&gt;&lt;a href=&quot;http://lists.w3.org/Archives/Public/www-archive/2002Dec/0005.html&quot; rel=&quot;nofollow&quot;&gt;http://lists.w3.org/Archives/Public/www-archive/2002Dec/0005.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have detailed at the URI below how to work around broken browsers and still serve your xhtml as application/xhtml+xml for the good ones in Apache:
<a href="http://lists.w3.org/Archives/Public/www-archive/2002Dec/0005.html" rel="nofollow"></a><a href="http://lists.w3.org/Archives/Public/www-archive/2002Dec/0005.html" rel="nofollow">http://lists.w3.org/Archives/Public/www-archive/2002Dec/0005.html</a></p>

<p>Hope this helps</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jor</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-611</link>
		<dc:creator>Jor</dc:creator>
		<pubDate>Sat, 19 Oct 2002 00:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-611</guid>
		<description>&lt;p&gt;Actually, disregard the above about a working Proxomitron filter. It is far too unreliable at the moment to work everywhere :(&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Actually, disregard the above about a working Proxomitron filter. It is far too unreliable at the moment to work everywhere :(</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jor</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-610</link>
		<dc:creator>Jor</dc:creator>
		<pubDate>Fri, 18 Oct 2002 20:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-610</guid>
		<description>&lt;p&gt;Just in case you are also a Proxomitron user, I have completed a filter which will attempt to fix this MSIE bug.&lt;/p&gt;

&lt;p&gt;More details are at &lt;a href=&quot;http://members.outpost10f.com/~jor/prox/msie.html&quot; rel=&quot;nofollow&quot;&gt;&lt;a href=&quot;http://members.outpost10f.com/~jor/prox/msie.html&quot; rel=&quot;nofollow&quot;&gt;http://members.outpost10f.com/~jor/prox/msie.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Of course the real solution is for Microsoft to finally fix their browser...&lt;/p&gt;

&lt;p&gt;Interestingly enough, I have just converted parts of my personal home page to compliant XHTML 1.1 (including the content-type), and I&#039;m seeing a very strange MSIe behaviour: it appears to be trying to interpret the doctype using my stylesheet!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just in case you are also a Proxomitron user, I have completed a filter which will attempt to fix this MSIE bug.</p>

<p>More details are at <a href="http://members.outpost10f.com/~jor/prox/msie.html" rel="nofollow"></a><a href="http://members.outpost10f.com/~jor/prox/msie.html" rel="nofollow">http://members.outpost10f.com/~jor/prox/msie.html</a></p>

<p>Of course the real solution is for Microsoft to finally fix their browser&#8230;</p>

<p>Interestingly enough, I have just converted parts of my personal home page to compliant XHTML 1.1 (including the content-type), and I&#8217;m seeing a very strange MSIe behaviour: it appears to be trying to interpret the doctype using my stylesheet!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jan!</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-609</link>
		<dc:creator>Jan!</dc:creator>
		<pubDate>Sat, 12 Oct 2002 18:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-609</guid>
		<description>&lt;p&gt;Here&#039;s how I do it in one line straight in PHP. Can be done in other languages, too, of course:&lt;/p&gt;

&lt;p&gt;$contentType = empty($&lt;em&gt;SERVER[&#039;HTTP&lt;/em&gt;ACCEPT&#039;]) ? &#039;text/html&#039; : (preg&lt;em&gt;match(&#039;#&#092;b(application/xhtml&#092;+xml&#124;application/xml&#124;text/xml&#124;text/html)&#092;b#&#039;, $&lt;/em&gt;SERVER[&#039;HTTP_ACCEPT&#039;], $matches) ? $matches[1] : &#039;text/html&#039;);&lt;/p&gt;

&lt;p&gt;Read: if there is an &quot;Accept:&quot; header AND there is a match for either one of the things between (), set it to the match; otherwise, default it to text/html&lt;/p&gt;

&lt;p&gt;Then it&#039;s just a matter of passing the Content-Type header on to the client (OK, that makes for a second line):&lt;/p&gt;

&lt;p&gt;header(&quot;Content-Type: $contentType; charset=utf-8&quot;);&lt;/p&gt;

&lt;p&gt;PS: Tim, how about adding the &quot;pre&quot; tag to the allowed list?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s how I do it in one line straight in PHP. Can be done in other languages, too, of course:</p>

<p>$contentType = empty($<em>SERVER[&#8216;HTTP</em>ACCEPT&#8217;]) ? &#8216;text/html&#8217; : (preg<em>match(&#8216;#&#92;b(application/xhtml&#92;+xml|application/xml|text/xml|text/html)&#92;b#&#8217;, $</em>SERVER[&#8216;HTTP_ACCEPT&#8217;], $matches) ? $matches[1] : &#8216;text/html&#8217;);</p>

<p>Read: if there is an &#8220;Accept:&#8221; header AND there is a match for either one of the things between (), set it to the match; otherwise, default it to text/html</p>

<p>Then it&#8217;s just a matter of passing the Content-Type header on to the client (OK, that makes for a second line):</p>

<p>header(&#8220;Content-Type: $contentType; charset=utf-8&#8221;);</p>

<p>PS: Tim, how about adding the &#8220;pre&#8221; tag to the allowed list?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: TjL</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-608</link>
		<dc:creator>TjL</dc:creator>
		<pubDate>Thu, 10 Oct 2002 19:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-608</guid>
		<description>&lt;p&gt;The disadvantage is that text/html will not show any parsing errors, so if you have an opening tag without a closing one, the browser doesn&#039;t say anything.&lt;/p&gt;

&lt;p&gt;If you use application/xhtml+xml then the browser will stop and report errors.&lt;/p&gt;

&lt;p&gt;It&#039;s sort of like instant validation of a sort.&lt;/p&gt;

&lt;p&gt;Checkout the link for the poorly formed XHTML 1.1 document in Opera or Mozilla and see what it says.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The disadvantage is that text/html will not show any parsing errors, so if you have an opening tag without a closing one, the browser doesn&#8217;t say anything.</p>

<p>If you use application/xhtml+xml then the browser will stop and report errors.</p>

<p>It&#8217;s sort of like instant validation of a sort.</p>

<p>Checkout the link for the poorly formed XHTML 1.1 document in Opera or Mozilla and see what it says.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tridus</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-607</link>
		<dc:creator>Tridus</dc:creator>
		<pubDate>Thu, 10 Oct 2002 19:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-607</guid>
		<description>&lt;p&gt;Can you explain what the specific disadvantage to using text/html is? The big advantage is obviously that it works properly in IE. What do I gain by using application/xhtml+xml?&lt;/p&gt;

&lt;p&gt;(what can I say, I don&#039;t understand basically everything on the W3C site)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Can you explain what the specific disadvantage to using text/html is? The big advantage is obviously that it works properly in IE. What do I gain by using application/xhtml+xml?</p>

<p>(what can I say, I don&#8217;t understand basically everything on the W3C site)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jor</title>
		<link>http://tntluoma.com/web/applicationxhtmlxml/comment-page-1/#comment-606</link>
		<dc:creator>Jor</dc:creator>
		<pubDate>Thu, 10 Oct 2002 17:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://tntluoma.com/?p=145#comment-606</guid>
		<description>&lt;p&gt;Very nice find! This is extremely useful, as I am learning XHTML.&lt;/p&gt;

&lt;p&gt;As for why IE displays the content as source: IE only pays respect to the file extension, and it ignores the MIME Type. If you serve foo.html as text/xml or application/xml, MSIE usally &lt;em&gt;will&lt;/em&gt; display it as a normal webpage.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very nice find! This is extremely useful, as I am learning XHTML.</p>

<p>As for why IE displays the content as source: IE only pays respect to the file extension, and it ignores the MIME Type. If you serve foo.html as text/xml or application/xml, MSIE usally <em>will</em> display it as a normal webpage.</p>]]></content:encoded>
	</item>
</channel>
</rss>

