W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: xml versus xhtml

From: Matt G <mattg@vguild.com>
Date: Sun, 2 Sep 2001 15:48:05 -0600
Message-ID: <001801c133f8$f4763ca0$6703a8c0@nb100>
To: "Paul" <valen@nic.com>, <html-tidy@w3.org>
That was exactly the question I asked a few days ago, though phrased

Tidy is designed to fix HTML, not fix XML. I do think there would be some
value for an option within Tidy, or a different version of the tool
(TidyXML?), that would only fix XML, ignoring HTML compliance. Fixing XML
should be infinitely faster, as you can bypass all the logic of what is good

And yes, I too thought that output-xml would accomplish that, but it does


----- Original Message -----
From: "Paul" <valen@nic.com>
To: <html-tidy@w3.org>
Sent: Sunday, September 02, 2001 3:35 PM
Subject: xml versus xhtml

Hi All,

I am beginning to believe that when there is a discrepancy between me and
Tidy, that Tidy is usually right.  That being said, I'll ask anyway:

When I tidy -

<h1>start of  heading
  <p>paragraph within</p>
        end of heading

tidy returns

<h1>start of heading</h1>
<p>paragraph within</p>
<p>end of heading</p>

This seems consistent with earlier observed tidy behavior, namely that
xhtml1.0 dtd disallows <p> within <h1>. So tidy closes the <h1>, etc.  But I
didn't specify output-xhtml.  I specified output-xml.  Isn't the input to
tidy valid h1 'xml'?  If so, why does tidy seem to force compliance with the
xhtml dtd?

Thanks for your help.


Received on Sunday, 2 September 2001 17:48:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:06:44 UTC