W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

RE: Validating other DTDs (i.e. XHTML 1.1)

From: Reitzel, Charlie <CReitzel@arrakisplanet.com>
Date: Mon, 4 Jun 2001 17:55:21 -0400
Message-ID: <B5C79DDBC655D311B6BD0008C7E64D76013C15B1@exchange.arrakisplanet.com>
To: "'Zac Thompson'" <zt-tidy@tenletters.com>, html-tidy@w3.org
-----Original Message-----
From: Zac Thompson [mailto:zt-tidy@tenletters.com]
Sent: Monday, June 04, 2001 4:28 PM
To: Reitzel@ingwaz.pair.com; Charlie; html-tidy@w3.org
Subject: RE: Validating other DTDs (i.e. XHTML 1.1)

Reitzel, Charlie wrote:
> I think you're on the right track w/ sp.  Any validating XML parser should
> do the trick.  You may, however, need to do a bit of work to get the
> to locate the DTD file based on the Formal Public Identifier (FPI) for
> 1.1.  The XHTML 1.1 spec includes an SGML CATALOG for this purpose.  As an
> SGML parse, I'll bet a nickel that sp supports catalogs.

You'd win that bet.  The problem is locating the *actual* DTD files
outside of an appendix to the spec (W3C recommendation).  I did eventually
SP (nsgmls) working by using the xhtml11.dtd URL listed in an example from 
Section 2 of the XHTML 1.1 recommendation.  I just found it odd that there 
were no links to the actual .dtd URLs anywhere in the spec ... the catalog 
references a file "xhtml11-flat.dtd" ... I couldn't find that one except by 
guessing what the location must be.  I'm only 90% sure that I'm linking to 
the right URL.

<creitzel>Darn that W3C</creitzel>

Now that I have the link, though, SP is very useful for validating my code.

I'm surprised that I haven't seen it integrated into editors, like Tidy is.

<creitzel>When using code on XML, everyone and his brother (well, lots of
people anyway) uses James Clark's Expat library.  Now a Source Forget
project at http://sourceforge.net/projects/expat.

I'm thinking that it might be nice to have it linked into Tidy!  But I
suppose you can run SP on Tidy's output with some pretty basic redirection.

Received on Monday, 4 June 2001 17:55:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC