- From: Jeff Schmidt <jsbiff@weldingengineering.com>
- Date: Thu, 12 Jan 2023 05:22:25 -0500
- To: Negin Alipour <drneginalipour@yahoo.com>
- Cc: site-comments@w3.org
- Message-ID: <66ff0657-4c07-78a6-2a9c-8e9ebc515054@weldingengineering.com>
Are you aware you replied to my email, but your reply had no text? On 1/10/2023 5:35 PM, Negin Alipour wrote: > > > Sent from my iPhone > > >> On Jan 10, 2023, at 01:01, Jeff Schmidt >> <jsbiff@weldingengineering.com> 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, 12 January 2023 10:23:00 UTC