On Wed, 2002-08-07 at 02:11, Reuben Thomas wrote:
> I have a strongish feeling that this patch is not correct.
psgml is
> also used with XML documents, and the root element in XML is case
> sensitive [1].
In that case, sgml-catalog-lookup should not upcase the doctype, or it
should only upcase it when it is an SGML doctype. There is no
xml-catalog-lookup, which makes things difficult.
Yep, and we're talking about a last effort guess, when there's no
DOCTYPE at all. etc/CATALOG talks about subdocument doctypes, and IMHO
it's seems to be just a coincidence that psgml-html's default SGML
doctype hits these entries.
There could be a xml-catalog-lookup, a <?xml...> in the beginning could
be used to trigger it instead of sgml-catalog-lookup.
> > Now it works fine: you can load un-doctyped HTML (such as
that
>
> Confirmed, with only changing the sgml-default-doctype-name in
> psgml-html, neat!
Ah yes, that is better. But if XML doctype searching is to work,
sgml-catalog-lookup should not upcase the name.
...and it doesn't. I only committed the change to
psgml-html(html-mode)'s default sgml doctype, nothing's changed in
sgml-catalog-lookup. Sorry if I didn't make myself clear.
--
\/ille Skyttä
ville.skytta at
xemacs.org