more XML Schemas fixes based on Eric van der Vlist examples added
* xmlregexp.c xmlschemas.c: more XML Schemas fixes based
on Eric van der Vlist examples
* result/schemas/vdv-first4* test/schemas/vdv-first4*:
added regression tests
* doc/examples/Makefile.am doc/examples/index.py: do not
regenerate the index on make all target, but only on
make rebuild to avoid troubles.
Daniel
diff --git a/xmlregexp.c b/xmlregexp.c
index 0af5a7a..c8d1ad1 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -1992,6 +1992,7 @@
return(codepoint == atom->codepoint);
case XML_REGEXP_RANGES: {
int accept = 0;
+
for (i = 0;i < atom->nbRanges;i++) {
range = atom->ranges[i];
if (range->neg) {
@@ -2000,6 +2001,8 @@
range->blockName);
if (ret != 0)
return(0); /* excluded char */
+ else
+ accept = 1;
} else {
ret = xmlRegCheckCharacterRange(range->type, codepoint,
0, range->start, range->end,
@@ -2199,6 +2202,8 @@
exec->state = comp->states[0];
exec->transno = 0;
exec->transcount = 0;
+ exec->inputStack = NULL;
+ exec->inputStackMax = 0;
if (comp->nbCounters > 0) {
exec->counts = (int *) xmlMalloc(comp->nbCounters * sizeof(int));
if (exec->counts == NULL) {