trying to nail down the remaining ##other issues completed the tests and
* xmlregexp.c xmlschemas.c: trying to nail down the remaining
##other issues
* result/schemas/any7* test/schemas/any7: completed the tests
and added the results
* result/schemas/any3_0_0.err result/schemas/any5_0_0.err
result/schemas/any5_1_0.err: this slightly chnages the output
from 3 existing tests
Daniel
diff --git a/xmlschemas.c b/xmlschemas.c
index 3ee5563..7a016a2 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -1935,7 +1935,7 @@
(cur[3] == ' ')) {
is_not = 1;
cur += 4;
- str = xmlStrcat(str, BAD_CAST "not ");
+ str = xmlStrcat(str, BAD_CAST "##other");
} else {
is_not = 0;
}
@@ -11137,20 +11137,9 @@
} while (ns != NULL);
} else if (wild->negNsSet != NULL) {
-
- /*
- * Lead nodes with the negated namespace to the sink-state
- * {"*", "##other"}.
- */
- pctxt->state = xmlAutomataNewTransition2(pctxt->am, start, NULL,
- BAD_CAST "*", wild->negNsSet->value, wild);
- /*
- * Open a door for nodes with any other namespace
- * {"*", "*"}
- */
- pctxt->state = xmlAutomataNewTransition2(pctxt->am,
- start, NULL, BAD_CAST "*", BAD_CAST "*", wild);
- xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end);
+ pctxt->state = xmlAutomataNewNegTrans(pctxt->am,
+ start, end, BAD_CAST "*", wild->negNsSet->value,
+ wild);
}
} else {
int counter;