[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] w3.org won't serve DTD imbedded in Docbook generated output - but only to IE
This seems to be an IE7 quirk with the W3C web server. These URLs are published in the XHTML standard as the place to get these DTDs. In the XHTML 1.0 standard document on the W3C website, the links to the strict and transitional DTDs don't work in IE7, they just say "No" (which sounds like a joke almost), but the link to the frameset DTD *does* work. Why the inconsistency? These links should work for all browsers, and the DTDs should be cached in the browser after the first fetch. I don't understand why they don't work now. Below is the mail I sent to the W3C webmaster. I'll let you know if I get an explanation of this odd behavior. ---------------------------------------------------------------------------------------------------- Have you noticed that the links to the XHTML 1.0 DTDs are not accessible to an HTTP request from Internet Explorer version 7? When I open the XHTML standards document: http://www.w3.org/TR/xhtml1/ and scroll down to section A.1.1 and click on this link, http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd my IE7 browser just displays "No". When I use View Source, it also just says "No". I get the same result when I scroll down to section A.1.2 and click on its link: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd BUT. here is the kicker: when I scroll down to section A.1.3 in the same document and click on this link: http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd then my IE7 browser properly asks if I want to download the dtd file. What gives? These are the published addresses of the DTDs, so why can't I get the DTDs from my browser? When I click on the same links from Firefox, it always asks if I want to download the DTD file. Is something set in your HTTP server to reject these requests from IE7? ---------------------------------------------------------------------------------------------------- Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Keith Fahlgren" <abdelazer@gmail.com> To: "William R. (Bill) Greene" <wrg@acm.org> Cc: <docbook@lists.oasis-open.org> Sent: Tuesday, February 24, 2009 5:06 PM Subject: Re: [docbook] w3.org won't serve DTD imbedded in Docbook generated output - but only to IE On Tue, Feb 24, 2009 at 4:44 PM, William R. (Bill) Greene <wrg@acm.org> wrote: > FWIW, this problem also occurs with the ePub stylesheets. Because > epub/docbook.xsl imports xhtml-1_1/docbook.xsl, which contains this line: > > <xsl:output method="xml" encoding="UTF-8" indent="no" > doctype-public="-//W3C//DTD XHTML 1.1//EN" > doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/> > > this XHTML was generated: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd"> > > which caused the online version of epubcheck at > http://www.threepress.org/document/epub-validate/ to complain: > > WARNING: wrg-resume.epub/wrg-resume.xhtml Unresolved external XML entity > 'http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd' I'm not able to reproduce on the command line or using Liza's tool: MacKeith:docbook-xsl-1.74.3 keith$ epub/bin/dbtoepub -v ~/scratch/a_book.xml Rendering DocBook file /Users/keith/scratch/a_book.xml to a_book.epub MacKeith:docbook-xsl-1.74.3 keith$ epubcheck a_book.epub Epubcheck Version 1.0.3 No errors or warnings detected MacKeith:docbook-xsl-1.74.3 keith$ unzip -d ~/scratch/a_book a_book.epub Archive: a_book.epub extracting: /Users/keith/scratch/a_book/mimetype creating: /Users/keith/scratch/a_book/META-INF/ inflating: /Users/keith/scratch/a_book/META-INF/container.xml creating: /Users/keith/scratch/a_book/OEBPS/ inflating: /Users/keith/scratch/a_book/OEBPS/bk01-toc.html inflating: /Users/keith/scratch/a_book/OEBPS/ch01.html inflating: /Users/keith/scratch/a_book/OEBPS/content.opf inflating: /Users/keith/scratch/a_book/OEBPS/index.html inflating: /Users/keith/scratch/a_book/OEBPS/toc.ncx MacKeith:docbook-xsl-1.74.3 keith$ head ~/scratch/a_book/OEBPS/ch01.html <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> == """ Validate ePub documents Valid ePub! a_book.epub is valid! """ Do you have a test document that exhibits this behavior? Thanks, Keith --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]