Re: PSGML and catalogs
Manoj Srivastava <srivasta@debian.org> writes:
> Hi folks,
>
> PSGML, for one, looks when it goes looking for, say, DOCTYPE
> HTML, looks at the first hit, even if it gets a HTML 4.01 DTD when
> the document read:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC
> "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> Please see Bug#156551 for details.
>
> Is this something that is more general a bug than just psgml?
Hmm, reading TR9401:
# The DOCTYPE keyword indicates that an entity manager should use the
associated storage object identifier to locate the entity text (to
be used as the external subset) for a doctype declaration whose
document type name is specified by the entity name spec. Note that a
document type declaration that omits the optional external
identifier (that points to the external subset) indicates the
absence of an external subset; in this case, there is no entity
reference to resolve, and no catalog lookup is performed.
It is unclear to me whether given a document doctype that has both a
catalog PUBLIC match and a DOCTYPE match, which is to be used.
Jade obviously uses the PUBLIC in prefernce to the DOCTYPE match, but
I don't see any support in the standard for this.
I wonder if we should just eliminate the DOCTYPE entry in the catalog
entirely. Alternatively, we move the DOCTYPE down to the bottom?
It's a little difficult for us to guarantee anything about the
ordering of various catalogs from different packages, so I don't even
know if this is possible.
FYI, the DOCTYPE catalog line is provided by w3c-dtd-xhtml now. If we
want that line just removed, we should reassign this bug there I
guess.
--
...Adam Di Carlo...<adam@onshored.com>.......<URL:http://www.onshored.com/>
Reply to: