Re: xhtml2 and www-validator

Veith Risak <> wrote:

> I think that www-validator is not yet able to validate xhtml2. Is this true?

That is the case.  Not because the Validator Team is lazy, but because
the HTML Working Group (more specifically me) is too lazy to come up
with a "usable" DTD for XHTML 2.0.  Well, I've said numerous times
that it's impossible, but people don't believe me.  So I have to do
my best to implement DTD and prove that it's unusable.  Oh well.
Hopefully the next draft will include something, usable or not.

Meanwhile, a RELAX NG schema for XHTML 2.0 [1] is more stable, and
you could try RELAX NG validators [2] to validate your XHTML 2.0
documents, such as Jing [3].  nXML-mode for Emacs [4] provides
real-time context-sensitive validation while editing a document,
using RELAX NG Compact Syntax schema.  You may get a ZIP archive
of XHTML 2.0 modules in RELAX NG XML Syntax [5] or Compact Syntax [6],
both correspond to the latest public draft.

When you write a new XHTML 2.0 document, you could start from
a template document [7] I created for my own use, or one of
examples included in the spec.  In order to test schemata,
I extracted all examples from the spec [8].  I've validated
all of them against RELAX NG schema (although sections 19 and 20
still need some tweak), so hopefully those are usable as a basis.
This is not an official work, and XHTML 2.0 is still a Working
Draft, so use it at your own risk.

Comments/bug reports/complaints on XHTML 2.0 schemata should be
sent to, not to this list.


Masayasu Ishikawa /
W3C - World Wide Web Consortium

Received on Friday, 30 July 2004 15:31:16 UTC