Thus far, you've read the HTML 4.01 and XHTML 1.0 documentation and you understand their relationship. You have successfully converted a few documents to XHTML 1.0. So, how do you know that your documents are really XHTML 1.0 compliant?
The easiest way, as stated earlier, is to use "xmllint." It was distributed with later versions of libxml, which can be obtained from xmlsoft.org. Once properly installed, you can use xmllint to check your work. Your command line entry will look like this:
xmllint --valid --noout mydoc.html
If you receive error
Thus far, you've read the HTML 4.01 and XHTML 1.0 documentation and you understand their relationship. You have successfully converted a few documents to XHTML 1.0. So, how do you know that your documents are really XHTML 1.0 compliant?
The easiest way, as stated earlier, is to use "xmllint." It was distributed with later versions of libxml, which can be obtained from xmlsoft.org. Once properly installed, you can use xmllint to check your work. Your command line entry will look like this:
xmllint --valid --noout mydoc.html
If you receive error
The RELAX NG kind, and maybe the XSD kind.
I wanted to use Emacs+nxml to create some XHTML 2 documents, so I went looking for an XHTML 2 schema. The latest Working Draft says that it "includes an early implementation of XHTML 2.0 in RELAX NG, but does not include the implementations in DTD or XML Schema form. Those will be included in subsequent versions, once the content of this language stabilizes." This schema's location is not obvious, but a few web searches turned up a pointer to the ZIP archive version of the Working Draft mentioned in the