Hash :
92b394fc
Author :
Date :
2006-05-09T19:59:54
Fixed bug #341150, reported by Michael Romer. In * 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.
<?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>