{"id":109,"date":"2008-03-11T13:38:22","date_gmt":"2008-03-11T21:38:22","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=109"},"modified":"2008-10-15T22:38:36","modified_gmt":"2008-10-16T06:38:36","slug":"xml-xslt-wont-render-in-firefox","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2008\/03\/xml-xslt-wont-render-in-firefox\/","title":{"rendered":"XML + XSLT Won&#8217;t Render in Firefox"},"content":{"rendered":"<p>In an attempt to create some easily customizable Kanji flashcards, I put all the class handouts into an XML file and wrote an XSLT file to transform it into HTML.<\/p>\n<p>Internet Explorer was able to render the resultant HTML table, but Firefox would simply show me unformatted text.  Ultimately, the problem turned out to be with my <tt>xsl:stylesheet<\/tt> declaration.<\/p>\n<h4>Good<\/h4>\n<p>This declaration worked under both IE and Firefox:<\/p>\n<pre>   &lt;?xml version=\"1.0\" encoding=\"utf-8\" ?&gt;\r\n   &lt;xsl:stylesheet version=\"1.0\"\r\n                   xmlns:xsl=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\"\r\n                   xmlns:h=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;<\/pre>\n<h4>Bad<\/h4>\n<p>However, this version would only render under Internet Explorer:<\/p>\n<pre>   &lt;?xml version=\"1.0\" encoding=\"utf-8\" ?&gt;\r\n   &lt;xsl:stylesheet version=\"1.0\"\r\n                   xmlns:xsl=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\"\r\n                   xmlns=\"http:\/\/www.w3.org\/TR\/xhtml1\/strict\"&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In an attempt to create some easily customizable Kanji flashcards, I put all the class handouts into an XML file and wrote an XSLT file to transform it into HTML. Internet Explorer was able to render the resultant HTML table, &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2008\/03\/xml-xslt-wont-render-in-firefox\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[137,139,138,136,134,135],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-technology","tag-firefox","tag-internet-explorer","tag-mozilla","tag-xhtml","tag-xml","tag-xslt"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":1,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":414,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/109\/revisions\/414"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}