Adding test file, Daniel

This commit is contained in:
Daniel Veillard 2006-10-13 16:39:14 +00:00
parent fa0d094ae3
commit be58a0a319
7 changed files with 51 additions and 0 deletions

View File

@ -2,6 +2,8 @@ Fri Oct 13 18:30:55 CEST 2006 Daniel Veillard <daniel@veillard.com>
* relaxng.c: fix a Relax-NG bug related to element content processing,
fixes bug #302836
* test/relaxng/302836.rng test/relaxng/302836_0.xml
result/relaxng/302836*: added to regression tests
Fri Oct 13 14:42:44 CEST 2006 Daniel Veillard <daniel@veillard.com>

0
result/relaxng/302836_0 Normal file
View File

View File

@ -0,0 +1 @@
./test/relaxng/302836_0.xml validates

View File

@ -0,0 +1 @@
./test/relaxng/302836.rng validates

View File

35
test/relaxng/302836.rng Normal file
View File

@ -0,0 +1,35 @@
<element name="base"
xmlns="http://relaxng.org/ns/structure/1.0">
<choice>
<group>
<element name="data">
<value>firstValue</value>
</element>
<oneOrMore>
<element name="option">
<element name="value">
<text/>
</element>
<element name="label">
<text/>
</element>
</element>
</oneOrMore>
</group>
<group>
<element name="data">
<value>secondValue</value>
</element>
<oneOrMore>
<element name="option">
<element name="value">
<text/>
</element>
<element name="label">
<text/>
</element>
</element>
</oneOrMore>
</group>
</choice>
</element>

12
test/relaxng/302836_0.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" ?>
<base>
<data>secondValue</data>
<option>
<value>how</value>
<label>some</label>
</option>
<option>
<value>this</value>
<label>more</label>
</option>
</base>