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 170795 - xml Schemas doesn't validate IDREF/IDREFS attributes
xml Schemas doesn't validate IDREF/IDREFS attributes
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: xmlschema
2.6.18
Other All
: Normal enhancement
: ---
Assigned To: kbuchcik
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-18 13:45 UTC by Fabrice GUY
Modified: 2021-07-05 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Schema containing ID an d IDREF attributes (482 bytes, text/xml)
2005-03-18 13:47 UTC, Fabrice GUY
Details
IDREF.xml containing an unreferenced value for an IDREF attribute (86 bytes, text/xml)
2005-03-18 13:48 UTC, Fabrice GUY
Details

Description Fabrice GUY 2005-03-18 13:45:29 UTC
xmllint --schema IDREF.xsd --noout IDREF.xml (see attached files) validates
although the value of the IDREF attribute isn't referenced by an ID attribute.
Comment 1 Fabrice GUY 2005-03-18 13:47:57 UTC
Created attachment 38898 [details]
Schema containing ID an d IDREF attributes
Comment 2 Fabrice GUY 2005-03-18 13:48:48 UTC
Created attachment 38899 [details]
IDREF.xml containing an unreferenced value for an IDREF attribute
Comment 3 kbuchcik 2005-04-05 16:14:59 UTC
Do you need this dearly? I'm not really sure how to implement this, since
ID/IDREF is handled per "validation root" in XML Schemas and per document in
DTDs. So I would possibly have to create a different implementation for this;
and expose the ID/IDREFness via PSVI (someday). This way the current DTD-based
ID-functions won't work with this - or would have to be extended. Until we
progress here, identity-constraints should be favoured over ID/IDREF.
Comment 4 Fabrice GUY 2005-05-02 08:43:42 UTC
Since identity-constraints are now implemented, the need of ID/IDREF validation
is not so important (for me).
Actually, I thought that this implementation was not difficult by using the
xmlValidateDocumentFinal function, as it is done with DTD and RelaxNG
validation. But my understanding of the code is poor, so...
Comment 5 GNOME Infrastructure Team 2021-07-05 13:27:29 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.