Branch
Hash :
9760a14f
Author :
Date :
2025-06-30T13:47:33
relaxng: In the simplification step also unlink notAllowed refs from choice This fixes false reports of non allowed content compared to notAllowed as tag within the choice tag.
<!-- RelaxNG: file:/V:/libxml2/test/relaxng/simplifyChoiceNotAllowed.rng -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="_">
<element>
<name>entryWithoutRef</name>
<oneOrMore>
<choice>
<element>
<name>form</name>
<empty/>
</element>
<notAllowed/>
</choice>
</oneOrMore>
</element>
<element>
<name>entryWithRef</name>
<oneOrMore>
<choice>
<element>
<name>form</name>
<empty/>
</element>
<ref name="fancyNameforNotAllowed"/>
</choice>
</oneOrMore>
<empty/>
</element>
</element>
</start>
<define name="fancyNameforNotAllowed">
<notAllowed/>
</define>
</grammar>