Hash :
1ba2aca3
Author :
Date :
2009-08-31T16:47:39
492317 Fix Relax-NG validation problems * 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
<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>