applied patch from Kuba Nowakowski fixing bug #313982 also added the test

* xmlschemastypes.c: applied patch from Kuba Nowakowski fixing bug
  #313982
* result/schemas/bug313982* test/schemas/bug313982*: also added
  the test case to the regression suite.
Daniel
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 59a51e0..9d99bbb 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -2284,6 +2284,8 @@
 			    *cptr++ = *cur++;
 			    len++;
 			} else if (*cur == '.') {
+			    if (len == 0)
+			        len++;
 			    if (dec != ~0u)
 				goto return1;	/* multiple decimal points */
 			    cur++;