mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-13 13:17:36 +03:00
1ba2aca3eb
* relaxng.c xmlregexp.c: a subtle problem when checking for compileable content model, if using the same elements in cases of choices. Handled by adding a special flag to the regexp compilation to detect transitions with different atoms using same strings. * test/relaxng/492317* result/relaxng/492317*: add the test to the regression suite
17 lines
466 B
Plaintext
17 lines
466 B
Plaintext
<element name="root" xmlns="http://relaxng.org/ns/structure/1.0">
|
|
<choice>
|
|
<element name="child">
|
|
<attribute name="type">
|
|
<value>Foo</value>
|
|
</attribute>
|
|
<!-- Define stuff that's only valid when type is "Foo" -->
|
|
</element>
|
|
<element name="child">
|
|
<attribute name="type">
|
|
<value>Bar</value>
|
|
</attribute>
|
|
<!-- Define stuff that's only valid when type is "Bar" -->
|
|
</element>
|
|
</choice>
|
|
</element>
|