W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

XML source doctype

From: Brad Stowers <bstowers@pobox.com>
Date: Fri, 24 Mar 2000 11:45:25 -0600
To: html-tidy@w3.org
Message-ID: <OFD06AAE33.084E997A-ON8625685D.005A2C3F@rfdinc.com>

I'm trying to run an XML file through tidy and it seems to choke on the
doctype (the output stops at that line).  If I remove the line, the file is
properly formatted.  Unfortunately, I need the line in there.  I could
remove it, run it through tidy, and then put it back in, but I'd really
prefer not to do that if I don't have to.  I'm hoping I'm missing some
config option or something, but I couldn't find it if I am.  Anyway, here's
what the beginning of the source file looks like:

<?xml version="1.0" ?>
<?fdl version="Beta 1"?>
<!DOCTYPE fenestra-fdl SYSTEM "fenestra-fdl.dtd">




and after formatting:

<?xml version="1.0"?><?fdl version="Beta 1"?>
<!DOCTYPE fenestra-fdl SYSTEM "fenestra-fdl.dtd">

[end of file]

As I said, if I remove the !DOCTYPE tag, it will work fine.  Any ideas?

Received on Friday, 24 March 2000 12:46:32 UTC

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