After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662505 - libxml2 shouldn't by default emit warnings about XML names starting with "xml"
libxml2 shouldn't by default emit warnings about XML names starting with "xml"
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.7.8
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-23 09:14 UTC by jirka
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample triggering warning message (88 bytes, text/xml)
2011-10-23 09:14 UTC, jirka
Details

Description jirka 2011-10-23 09:14:58 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
Comment 1 Piotr Banski 2012-01-24 09:57:51 UTC
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.
Comment 2 GNOME Infrastructure Team 2021-07-05 13:22:02 UTC
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.