#1010134 xml-core: please improve message "error: entity not registered" with details

Package:
xml-core
Source:
xml-core
Submitter:
Vincent Lefevre
Date:
2026-01-10 11:40:03 UTC
Severity:
wishlist
Tags:
#1010134#5
Date:
2022-04-25 01:32:38 UTC
From:
To:
When testing the patch for bug 1003933, I get the following error
messages:

update-xmlcatalog: error: entity not registered
update-xmlcatalog: error: entity not registered
update-xmlcatalog: error: entity not registered
update-xmlcatalog: error: entity not registered

They should be more detailed, e.g. telling which entity is not
registered.

#1010134#12
Date:
2022-04-25 20:02:54 UTC
From:
To:
Hi Vincent,

Vincent Lefevre, on 2022-04-25:

Thanks as well for checking!

Using the patch attached to make the error a bit more verbose,
I ended up with the following URI:

update-xmlcatalog: error: entity referred by "http://www.w3.org/TR/rdfa-syntax/DTD/xhtml-rdfa-model-1.mod" not registered
update-xmlcatalog: error: entity referred by "http://www.w3.org/2003/entities/2007/htmlmathml-f.ent" not registered
update-xmlcatalog: error: entity referred by "http://www.w3.org/TR/rdfa-syntax/DTD/xhtml-rdfa-model-1.mod" not registered
update-xmlcatalog: error: entity referred by "http://www.w3.org/2003/entities/2007/htmlmathml-f.ent" not registered

Those two have in common to be referenced by duplicate systemId
lines in the catalog:

$ nl htdocs/sgml-lib/catalog.xml | grep -C0 'htmlmathml-f.ent\|xhtml-rdfa-model-1.mod'
   253	  <public publicId="-//W3C//ENTITIES XHTML+RDFa Document Model 1.0//EN" uri="REC-rdfa-syntax-20081014/xhtml-rdfa-model-1.mod" />
   254	  <system systemId="http://www.w3.org/TR/rdfa-syntax/DTD/xhtml-rdfa-model-1.mod" uri="REC-rdfa-syntax-20081014/xhtml-rdfa-model-1.mod" />
   255	  <system systemId="http://www.w3.org/TR/rdfa-syntax/DTD/xhtml-rdfa-model-1.mod" uri="REC-rdfa-syntax-20081014/xhtml-rdfa-model-1.mod" />
--
   538	  <system systemId="http://www.w3.org/2003/entities/2007/htmlmathml-f.ent" uri="REC-xml-entity-names-20100401/htmlmathml-f.ent" />
   539	  <system systemId="http://www.w3.org/2003/entities/2007/htmlmathml-f.ent" uri="REC-xml-entity-names-20100401/htmlmathml-f.ent" />

I tried to deduplicate both lines just in case, but error
messages remained.  I don't know the root cause I'm afraid.

Any ways, in hope this helps,

#1010134#17
Date:
2026-01-10 10:08:19 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.