mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00

* xmlschemas.c: Fixed bug #341150, reported by Michael Romer. In xmlSchemaBuildContentModelForSubstGroup(), xmlAutomataNewOnceTrans2() was incorrectly used instead of xmlAutomataNewTransition2() to mimic a xs:choice for substitution-groups. * test/schemas/subst-group-1_1.xsd test/schemas/subst-group-1_0.xml result/schemas/subst-group-1_0_1 result/schemas/subst-group-1_0_1.err: Added regression test supplied by Michael Romer for bug #341150.
13 lines
420 B
XML
13 lines
420 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Test for bug #341150 -->
|
|
<TestRoot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="subst-group-1.xsd">
|
|
<Events>
|
|
<TestEvent>Test 1.</TestEvent>
|
|
<!-- Uncomment the following element to cause libxml's xmllint to
|
|
fail to validate. -->
|
|
<TestEvent>Test 2.</TestEvent>
|
|
</Events>
|
|
</TestRoot>
|
|
|