1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
libxml2/test/schemas/582906-2_0.xsd
Jason Childs edc68aadf8 582906 XSD validating multiple imports of the same schema
* xmlschemas.c: When validating a schema that includes the same file
  that has no targetNamespace defined an internal erro was thrown,
  depending on the orig namespace that should be allowed though
* test/schemas/582906-* result/schemas/582906-*: 2 tests case, one
  where this is allowed, and one where this is forbidden
2009-08-07 20:29:33 +02:00

21 lines
730 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<xs:schema xmlns="http://example.com/xml/Aggregator"
xmlns:prog1="http://example.com/xml/Prog1"
xmlns:prog2="http://example.com/xml/Prog2"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="http://example.com/xml/Aggregator">
<xs:import schemaLocation="582906-2-prog1.xsd"
namespace="http://example.com/xml/Prog1" />
<xs:import schemaLocation="582906-2-prog2.xsd"
namespace="http://example.com/xml/Prog2"
/>
<xs:element name="CollectedOutput" type="xs:float"/>
</xs:schema>