Commit 441bc32e authored by Daniel Veillard's avatar Daniel Veillard
Browse files

implementing xs:all with minOccurs = 0 added more tests covering xs:all

* xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h:
  implementing xs:all with minOccurs = 0
* tes/schemas/* result/schemas/*: added more tests covering
  xs:all
Daniel
parent 8a001f62
Sat Apr 20 19:36:39 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h:
implementing xs:all with minOccurs = 0
* tes/schemas/* result/schemas/*: added more tests covering
xs:all
Sat Apr 20 09:22:50 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xmlregexp.c: first implementation of the all particle, this
......
......@@ -69,7 +69,8 @@ xmlAutomataStatePtr xmlAutomataNewOnceTrans (xmlAutomataPtr am,
void *data);
xmlAutomataStatePtr xmlAutomataNewAllTrans (xmlAutomataPtr am,
xmlAutomataStatePtr from,
xmlAutomataStatePtr to);
xmlAutomataStatePtr to,
int lax);
xmlAutomataStatePtr xmlAutomataNewEpsilon (xmlAutomataPtr am,
xmlAutomataStatePtr from,
xmlAutomataStatePtr to);
......
./test/schemas/all_0.xml validates
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_0.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: all transition, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: a, a, a
xmlSchemaValidateCallback: b, b, b
xmlSchemaValidateCallback: c, c, c
Element doc content check succeeded
./test/schemas/all_1.xml validates
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_0.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: all transition, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: b, b, b
xmlSchemaValidateCallback: c, c, c
xmlSchemaValidateCallback: a, a, a
Element doc content check succeeded
./test/schemas/all_2.xml validates
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_0.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: all transition, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: b, b, b
xmlSchemaValidateCallback: a, a, a
xmlSchemaValidateCallback: c, c, c
Element doc content check succeeded
./test/schemas/all_3.xml fails to validate
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_0.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: all transition, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: a, a, a
xmlSchemaValidateCallback: b, b, b
Element doc content check failed
./test/schemas/all_4.xml fails to validate
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_0.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: all transition, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
Element doc content check failed
./test/schemas/all_5.xml fails to validate
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of all2 : ./test/schemas/all_0.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_0.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: all transition, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: a, a, a
xmlSchemaValidateCallback: b, b, b
Element doc content check failed
./test/schemas/all_0.xml validates
Type of all2 : ./test/schemas/all_1.xsd:5 :elements
Type of all2 : ./test/schemas/all_1.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_1.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: count based 1193047, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: a, a, a
xmlSchemaValidateCallback: b, b, b
xmlSchemaValidateCallback: c, c, c
Element doc content check succeeded
./test/schemas/all_1.xml validates
Type of all2 : ./test/schemas/all_1.xsd:5 :elements
Type of all2 : ./test/schemas/all_1.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_1.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: count based 1193047, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: b, b, b
xmlSchemaValidateCallback: c, c, c
xmlSchemaValidateCallback: a, a, a
Element doc content check succeeded
./test/schemas/all_2.xml validates
Type of all2 : ./test/schemas/all_1.xsd:5 :elements
Type of all2 : ./test/schemas/all_1.xsd:5 :elements
Type of anontype1 : ./test/schemas/all_1.xsd:4 :elements
Building content model for doc
Unimplemented block at xmlschemas.c:3062
Content model of doc:
regexp: '(null)'
3 atoms:
00 atom: string onceonly 'a'
01 atom: string onceonly 'b'
02 atom: string onceonly 'c'
2 states:
state: 0, 4 transitions:
trans: counted 0, atom 0, to 0
trans: counted 1, atom 1, to 0
trans: counted 2, atom 2, to 0
trans: count based 1193047, epsilon to 1
state: FINAL 1, 0 transitions:
3 counters:
0: min 1 max 1
1: min 1 max 1
2: min 1 max 1
xmlSchemaValidateCallback: b, b, b
xmlSchemaValidateCallback: a, a, a
xmlSchemaValidateCallback: c, c, c
Element doc content check succeeded
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment