- xpath.c: Bjorn found the error related to strictness of comparison.

Daniel
This commit is contained in:
Daniel Veillard 2001-03-06 08:33:38 +00:00
parent 29631a8901
commit 4af6b6e801
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Tue Mar 6 09:21:30 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: Bjorn found the error related to strictness of comparison.
Mon Mar 5 21:47:31 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c: trying to fix the Dtd parsing problem reported

View File

@ -2571,9 +2571,11 @@ xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict) {
ret = xmlXPathCompareNodeSets(ctxt, inf, strict, arg1, arg2);
} else {
if (arg1->type == XPATH_NODESET) {
ret = xmlXPathCompareNodeSetValue(ctxt, inf, strict, arg1, arg2);
ret = xmlXPathCompareNodeSetValue(ctxt, inf, strict,
arg1, arg2);
} else {
ret = xmlXPathCompareNodeSetValue(ctxt, !inf, !strict, arg2, arg1);
ret = xmlXPathCompareNodeSetValue(ctxt, !inf, strict,
arg2, arg1);
}
}
return(ret);