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 637185 - xmllint: validating xml defined in multiple xsds
xmllint: validating xml defined in multiple xsds
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: xmlschema
2.6.x
Other FreeBSD
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-13 21:15 UTC by technossomy
Modified: 2021-07-05 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description technossomy 2010-12-13 21:15:42 UTC
How can xmllint be used to validate an xml with multiple xsds?
Suppose there is a message file01.xml of which the structure is defined in xsd01.xsd and also in shared01.xsd through an include statement.

This is the head of xsd01:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:include schemaLocation="shared01.xsd" />
  <xsd:complexType name="somecomplextype">
  [continues with definitions of complextype]

And this is the head for shared01.xsd:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:simpleType name="somesimpletype">
  [continues with definitions of simpletype]

When there is only one xsd called somexsd.xsd, xmllint would be invoked as:
xmllint --noout --schema somexsd.xsd file01.xml

How should the validation for file01.xml be done, ie defined in two xsds?
Comment 1 GNOME Infrastructure Team 2021-07-05 13:22:28 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.