GNOME Bugzilla – Bug 662505
libxml2 shouldn't by default emit warnings about XML names starting with "xml"
Last modified: 2021-07-05 13:22:02 UTC
Created attachment 199753 [details] Sample triggering warning message When libxml2 finds name starting with "xml" it emits warning. Such names are reserved by XML spec, but it can be assigned after getting approval from W3C. Such example is xml-model (http://www.w3.org/TR/xml-model/). When having <?xml-model?> inside document libxml2 reports: c:\temp>xmllint --version xmllint --version xmllint: using libxml version 20708 compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib c:\temp>xmllint --noout xml-model.xml xmllint --noout xml-model.xml xml-model.xml:2: parser warning : xmlParsePITarget: invalid name prefix 'xml' <?xml-model href="schema.rng"?> ^ Such warning shouldn't be emitted. Thanks, Jirka BTW, adding support for xml-model would be nice as well. :-D
Just noting that it seems that xml-model is receiving wider and wider support, so here's one more "vote" for this issue to get handled, time permitting. In fact, the warning, as it is, is simply misleading.
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.