- From: Denis Ah-Kang <denis@w3.org>
- Date: Thu, 2 Feb 2023 09:59:09 +0400
- To: Jeff Schmidt <jsbiff@weldingengineering.com>, site-comments@w3.org
Hi Jeff, Sorry for the late reply and thank you for your report. The superseded version was indeed missing a redirection for that mod file. This has been restored and your validation should now pass. Best regards, Denis On 10/01/2023 02:38, Jeff Schmidt wrote: > Update: So, I'm not sure which is wrong, the xhtml11 dtd or the site, > but I found the 'missing' file, xhtml-datatypes-1.mod. . . > > I noticed that a bunch of the other files that are included from the > DTD, don't live under the path /TR/xhtml11/DTD, but instead, live under > the path /Markup/DTD, so, I decided to check to see if the URL: > > http://www.w3.org/Markup/DTD/xhtml-datatypes-1.mod > > Is a valid path, and yes, when I went there in my web browser, it > download the file. So, either the file is at the wrong location and > needs to be moved (or copied), or the dtd document has the wrong path > and needs to be updated. > > Hope that helps. > > > On 1/9/2023 7:27 AM, Jeff Schmidt wrote: > >> Hello, >> >> I was experimenting with XHTML version 1.1. Yes, I know that it is >> superseded by XHTML5, but, there is no official DTD or XSD for XHTML5. >> I wanted to try testing validation of an XML document with a command >> line XML validator tool. I was then, once I knew it was working >> correctly, going to try getting an xhtml5 document and seeing if I >> could validate against the unofficial v.Nu xhtml5 relaxng schemas. >> >> According to the page: >> >> https://www.w3.org/TR/xhtml11/conformance.html >> >> A valid xhtml11 document MUST include both a DOCTYPE referencing the >> DTD and MAY include a reference to the XSD. The following is the >> recommended DOCTYPE and root html element: >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" >> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" >> > >> >> When I attempted to validate my .xhtml document which included the >> above, since there was a DTD declaration, the validator automatically >> attempted to validate against the DTD at: >> >> http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd >> >> The validator threw the following error: >> >> java.io.FileNotFoundException: >> http://www.w3.org/TR/xhtml11/DTD/xhtml-datatypes-1.mod >> >> Since my document doesn't directly reference that URL, I figured that >> it must be included from xhtml11.dtd, and I verified that by going and >> searching in the file xhtml11.dtd, and yes, indeed it does include it. >> >> So, I tried loading that URL in my browser, and got a 404 page not >> found error. >> >> So, this means that one cannot validate against the public xhtml11 dtd >> published on the w3.org website currently. I know this is a superseded >> standard, but, the validation files should still be available and >> should forever be available on the w3.org website, because even though >> it's superseded, people should still be able to use it if they so >> choose and it meets their needs, and additionally, they may need to >> validate and process legacy xhtml files generated either in the past, >> or by old web apps/sites that were written against xhtml11. >> >> Please fix this missing page (and any other pages that may also be >> missing from the site) so that xhtml validation against the dtd works >> (although, ideally, I'd like my documents to validate against the xsd, >> not the dtd, but currently, I haven't found a way to get the java >> validator code to ignore the DOCTYPE and just validate against the >> DTD, except to remove the DOCTYPE element (which, then my doc DID >> validate successfully against the xsd). >> >>
Received on Thursday, 2 February 2023 05:59:15 UTC