{"id":458,"date":"2004-09-18T10:23:00","date_gmt":"2004-09-18T14:23:00","guid":{"rendered":"http:\/\/www.markbaker.ca\/wp\/2004\/09\/18\/why-namespaces-dont-replace-media-types\/"},"modified":"2004-09-18T10:23:00","modified_gmt":"2004-09-18T14:23:00","slug":"why-namespaces-dont-replace-media-types","status":"publish","type":"post","link":"http:\/\/www.markbaker.ca\/blog\/2004\/09\/why-namespaces-dont-replace-media-types\/","title":{"rendered":"Why namespaces don&#8217;t replace media types"},"content":{"rendered":"<pre>\n&lt;html xsl:version=\"1.0\"\n      xmlns:xsl=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\"\n      xmlns=\"http:\/\/www.w3.org\/TR\/xhtml1\/strict\"&gt;\n  &lt;head&gt;\n    &lt;title&gt;Expense Report Summary&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;p&gt;Total Amount: &lt;xsl:value-of select=\"expense-report\/total\"\/&gt;&lt;\/p&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n<p>(<a href=\"http:\/\/www.w3.org\/TR\/xslt#result-element-stylesheet\">reference<\/a>)<\/p>\n\n<p><em>Update<\/em>; ok, for the two of you that missed my point, that document\nis both an XHTML document and an XSLT 1.0 stylesheet.  All the root namespace tells\nyou is, well, the root namespace.  The actual type is orthogonal to this, and in\nfact, orthogonal to anything in the document itself.  Unless we want to prevent\nthis form of compound document from being used, it is critical that media types\ncontinue be the key from which applications are dispatched.<\/p>","protected":false},"excerpt":{"rendered":"&lt;html xsl:version=&#8221;1.0&#8243; xmlns:xsl=&#8221;http:\/\/www.w3.org\/1999\/XSL\/Transform&#8221; xmlns=&#8221;http:\/\/www.w3.org\/TR\/xhtml1\/strict&#8221;&gt; &lt;head&gt; &lt;title&gt;Expense Report Summary&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;p&gt;Total Amount: &lt;xsl:value-of select=&#8221;expense-report\/total&#8221;\/&gt;&lt;\/p&gt; &lt;\/body&gt; &lt;\/html&gt; (reference) Update; ok, for the two of you that missed my point, that document is both an XHTML document and an XSLT 1.0 stylesheet. All the root namespace tells you is, well, the root namespace. The actual type is [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[40],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-xml"],"_links":{"self":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":0,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}