W3C home > Mailing lists > Public > www-validator@w3.org > May 2001

Re: Adding new Doctype

From: Terje Bless <link@tss.no>
Date: Wed, 23 May 2001 18:08:49 +0200
To: W3C Validator <www-validator@w3.org>
Message-ID: <20010523180859-b01010701-d38c6f3e@192.168.1.6>
On 23.05.01 at 22:56, Martin Duerst <duerst@w3.org> wrote:

>Can somebody point me to a thread that helps to understand
>what has to be done for adding a new document type?

I don't think this is documented anywhere. Off the top of my head it gies
something like this:

* You'll need to get the DTDs and supporting files from the REC,
  and put them somewhere suitable in $VALIDATOR/htdocs/sgml-lib/.
* You then need to update the SGML Open Catalog --
  $VALIDATOR/htdocs/sgml-lib/catalog -- to map the FPI to the DTD.
* If the standard in question requires a different SGML Declaration
  you'll need to add special case code to "check" as is done for
  XHTML 1.0. 
* To enable DOCTYPE override for this standard you'll need to
  modify $VALIDATOR/htdocs/config/doctypes.cfg to provide a
  mapping from, say, "XHTML 1.1" to the FPI; and change the HTML
  in $VALIDATOR/htdocs/index.html, file-upload.html, and
  fragment-upload.html to include "XHTML 1.1" as an OPTION.


>I would like to look into adding support for XHTML 1.1
>http://www.w3.org/TR/2001/PR-xhtml11-20010406/ when/if
>that makes it to Recommendation.

I'm not completely up to speed, but doesn't XHTML 1.1 require an XML Schema
processor to get meaningfull validation? That means we need to support
Namespaces as well, non?

The current processor can't deal with this and a new processor isn't ready
yet. You'd need to look into switching to Richard Tobin's rxp or
Apache/IBM's Xerces-[C|J|P]. Gerald has some simple patches sitting around
that will drop in rxp, but I haven't tried it yet. No work has been done on
getting Xerces in there because Schema support isn't there yet.
Received on Wednesday, 23 May 2001 12:09:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:58 GMT