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

-----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
parser
> to locate the DTD file based on the Formal Public Identifier (FPI) for
XHTML
> 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
themselves, 
outside of an appendix to the spec (W3C recommendation).  I did eventually
get 
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.
</creitzel>

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.

Zac

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