Control: tags 1010134 + patch Hi Vincent, Vincent Lefevre, on 2022-04-25: > Thanks for the patch. I've rebuilt the w3c-sgml-lib package with it, > and this seems to work. Thanks as well for checking! > The only issue is that when reinstalling the package, I get the > following non-fatal errors: > > update-xmlcatalog: error: entity not registered > update-xmlcatalog: error: entity not registered > update-xmlcatalog: error: entity not registered > update-xmlcatalog: error: entity not registered 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, -- Étienne Mollier <emollier@emlwks999.eu> Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da Sent from /dev/pts/5, please excuse my verbosity. On air: Høst - På Sterke Vinger
--- xml-core-0.18+nmu2.orig/tools/update-xmlcatalog +++ xml-core-0.18+nmu2/tools/update-xmlcatalog @@ -460,7 +460,9 @@ } else { - print STDERR "$name: error: entity not registered\n"; + my $uri = $key; + $uri =~ s/[^"]*("[^"]*")/\1/; + print STDERR "$name: error: entity referred by $uri not registered\n"; return; }
Attachment:
signature.asc
Description: PGP signature