Hi,
Agreed. When "a" is checked against an (a ,b) construct a value of 1 should be returned indicating that there is a problem at child 1 (missing or incorrect).


However when "x" is checked against the same (a, b) construct surely a value of 0 should be returned rather than 1 (in the current code) as the problem is at child 0 rather than 1. This implies that child 0 is correct where it is clearly not.


Regards, Justin.

Glenn Marcy wrote:

I believe that it was pointed out before that a return value of -1, not 1, indicates a successful match against the content model. The return value of 1 indicates that the child at children[offset + 1] is either incorrect or missing. In your example it is missing.

Regards,
Glenn



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to