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 599433 - xmlSplitQName2 description inaccurate
xmlSplitQName2 description inaccurate
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: docs
git master
Other Windows
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-23 18:38 UTC by Kevin Braun
Modified: 2017-06-20 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kevin Braun 2009-10-23 18:38:25 UTC
xmlSplitQName2 returns NULL if the passed name does not have a prefix.  I understand from a newsgroup posting that this is the desired behavior.  However, the documentation says that it returns NULL if the passed name is not a QName.  Yet, a name without a prefix is still a QName, and the documentation even includes a grammar production for QName that shows this.  It would help to correct the documentation.

Perhaps:
Returns: NULL if not a QName or if there is no prefix.  Otherwise, the local part, and prefix is updated to get the Prefix.
Comment 1 Nick Wellnhofer 2017-06-20 13:57:26 UTC
Fixed with the following commit:

https://git.gnome.org/browse/libxml2/commit/?id=5a0ae66d7202619d493985537818e052d9d1239f