GNOME Bugzilla – Bug 601282
Excessive namespace cleaning
Last modified: 2021-07-05 13:23:51 UTC
Created attachment 147289 [details] 12 Reproduce case Prefixes declared in entities are incorrectly stripped away. Probably related to bug#502960 Running the attachment through xmllint with --nsclean will incorrectly remove the xlink prefix and throw errors: bjori@jessica:~/tmp$ xmllint --noout --noent --nsclean --valid test.xml namespace warning : Namespace default prefix was not found g/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&url.pecl;" ^ test.xml:10: element link: validity error : Element link namespace name for default namespace does not match the DTD <para>This is &link.pecl;</para> ^ test.xml:10: element link: validity error : No declaration for attribute href of element link <para>This is &link.pecl;</para> ^ While running without --nsclean everything works fine: bjori@jessica:~/tmp$ xmllint --noout --noent --valid test.xml bjori@jessica:~/tmp$ Using 2.7.5 (not in the version list...) bjori@jessica:~/tmp$ xmllint --version xmllint: using libxml version 20705 compiled with: Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.