Re: ISSUE-54: doctype-legacy-compat

Hi Philip,


Philip Taylor wrote:
> ...
> Which tools are "all known tools"?

That's indeed a good question. Of course there's no way no please *all* 
these tools, in particular if their doctype output is hardwired.

> There are tools which have an HTML4 or XHTML1.0 doctype hardcoded, and 
> we can't do anything about them, so I assume they must be excluded.

Indeed.

> Looking at the source code for TagSoup 
> (<http://home.ccil.org/~cowan/XML/tagsoup/>), I believe its "XMLWriter" 
> (actually an XML-incompatible HTML writer) can only output:
> 
>   <!DOCTYPE html SYSTEM "">
> or
>   <!DOCTYPE html PUBLIC "x" "">
> 
> (where "x" means at least one character, and "" is at least zero).

Do people use it for generating HTML5? If yes, then they must have 
encountered that problem.

Also, TagSoup is open-source, so fixing it seems to be easy (in contrast 
to changing JAXP or XSLT behavior in exising JDK 1.4..6.0 installations).

> ...
> <!DOCTYPE html PUBLIC ""> would only help XSLT.

Incorrect, and that has been pointed out multiple times by now.

> ...

BR, Julian

Received on Saturday, 17 January 2009 17:16:28 UTC