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 13:56:54 -0400
Message-ID: <B5C79DDBC655D311B6BD0008C7E64D76013C15A9@exchange.arrakisplanet.com>
To: "'Zac Thompson'" <zt-tidy@tenletters.com>, html-tidy@w3.org
Hi Zac,

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.

See 
http://www.w3.org/TR/2001/REC-xhtml11-20010531/xhtml11_dtd.html#a_xhtml11_ca
talog

You can probably download the dtd file and map the FPI to this local file.

If you're doing the validation in your own code, you can write an entity
resolver that returns the DTD when it sees the public ID of "-//W3C//DTD
XHTML 1.1//EN"

Hope this helps,
Charles Reitzel



-----Original Message-----
From: Zac Thompson [mailto:zt-tidy@tenletters.com]
Sent: Monday, June 04, 2001 4:38 AM
To: html-tidy@w3.org
Subject: Validating other DTDs (i.e. XHTML 1.1)



Briefly, I want to validate documents as XHTML 1.1 (Tidy "validates" as
XHTML 1.0 Strict, so I know I'm close), and yes, I'm sure the next version
of Tidy will support it in some way, but I'm looking for a more general
solution that I can re-use when a new DTD appears that I would like to use.

I understand that Tidy is not a generic XML validator. Does anyone have
pointers to good resources for validating an XML file for which I have a
DTD?

I recently took a look at James Clark's SP ... heavily technical, but I can
use it. Or at least I could, if I could comprehend what's happening with the
XHTML 1.1 DTDs ...

Are these posted online as .dtd files? How do I reference them in a  DOCTYPE
line? I tried saving the "xhtml11.dtd" section of the spec as a  local text
file for validating against, but it contains all kinds of references to
other online files, which don't seem to quite work the way I want them to
... What to do?

Zac
Received on Monday, 4 June 2001 13:56:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT