applied patch for xsi:nil from Frank Gross, this should fix bug #358125

* xmlschemas.c: applied patch for xsi:nil from Frank Gross, this
  should fix bug #358125
Daniel

svn path=/trunk/; revision=3643
diff --git a/ChangeLog b/ChangeLog
index 27aa4d2..05ef347 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jul 11 19:57:59 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+	* xmlschemas.c: applied patch for xsi:nil from Frank Gross, this
+	  should fix bug #358125
+
 Wed Jul  4 17:44:20 CEST 2007 Daniel Veillard <daniel@veillard.com>
 
 	* xmlwriter.c: patch from Dodji Seketeli to avoid a leak on repeated
diff --git a/xmlschemas.c b/xmlschemas.c
index f3d0278..f38cdc3 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -25951,7 +25951,7 @@
 	    xmlRegExecNextValues(inode->regexCtxt,
 		&nbval, &nbneg, &values[0], &terminal);
 	    ret = xmlRegExecPushString(inode->regexCtxt, NULL, NULL);
-	    if (ret <= 0) {		
+	    if ((ret<0) || ((ret==0) && (!INODE_NILLED(inode)))) {
 		/*
 		* Still missing something.
 		*/